purple-oil-45048
02/06/2017, 12:30 AMhappy-kitchen-89482
02/06/2017, 12:31 AMhappy-kitchen-89482
02/06/2017, 12:31 AMprepare_resources()
method can be quite simple.purple-oil-45048
02/06/2017, 12:32 AMResourcesTask
again .. no I think I can connect the dots betterpurple-oil-45048
02/06/2017, 12:32 AMhappy-kitchen-89482
02/06/2017, 12:32 AMhappy-kitchen-89482
02/06/2017, 12:32 AMResourcesTask
but Iād need to sanitize it before posting itpurple-oil-45048
02/06/2017, 12:34 AMprepare_services.py
as a reference .. but that one seems to use a very specific .services
property on the targethappy-kitchen-89482
02/06/2017, 12:34 AMhappy-kitchen-89482
02/06/2017, 12:35 AMhappy-kitchen-89482
02/06/2017, 12:35 AMjvm_app
already have all the data it needS?purple-oil-45048
02/06/2017, 12:35 AMhappy-kitchen-89482
02/06/2017, 12:35 AMhappy-kitchen-89482
02/06/2017, 12:35 AMhappy-kitchen-89482
02/06/2017, 12:36 AMfind_all_relevant_resources_targets
to only return JvmApp
targetshappy-kitchen-89482
02/06/2017, 12:36 AMprepare_resources
triviallyhappy-kitchen-89482
02/06/2017, 12:36 AMpurple-oil-45048
02/06/2017, 12:38 AMpurple-oil-45048
02/06/2017, 12:39 AMchroot
as a the path, right? the question is do I have to add the generated file back to the target
in the prepare_resources
method somehow?purple-oil-45048
02/06/2017, 2:36 AMpurple-oil-45048
02/06/2017, 3:01 AMbuild.properties
included in self.context.products.get(āresourcesā)
.
There is an .add
method on that thing .. but honestly I am pulling straws now ..purple-oil-45048
02/06/2017, 3:01 AMpurple-oil-45048
02/06/2017, 5:42 AMprepare_resources
..
path = os.path.join(chroot, 'build.properties')
resources = self.context.products.get_data('resources', lambda: defaultdict(MultipleRootedProducts))
classpaths = self.context.products.get_data('runtime_classpath')
with safe_open(path, 'w') as output:
<http://self.context.log.info|self.context.log.info>('file={}'.format(path))
output.writelines( ⦠)
# only for resources?
resources[target].add_abs_paths(chroot, [path])
classpaths.add_for_target(target, [('default', chroot)])
The file gets generated but I donāt see it anywhere in the /dist
dir after running ./pants bundle
stale-chef-81972
02/06/2017, 9:25 PMclean-all
goal to wipe out the cache? i've been running into an issue where data under .cache is apparently preventing a complete pex buildrough-minister-58256
02/06/2017, 9:38 PMclean-*
goals could use a rethink tho - ideally thereād be layers of cleaning.witty-crayon-22786
02/06/2017, 9:39 PMrough-minister-58256
02/06/2017, 9:39 PMPEX_ROOT
env var - in our monorepo, we pass PEX_ROOT=${REPO_ROOT}/.pex
so that itās at least a little more local.rough-minister-58256
02/06/2017, 9:39 PMrough-minister-58256
02/06/2017, 9:40 PMPEX_ROOT
to .pants.d/.pex or something which would cause it to get wiped via a clean-all
stale-chef-81972
02/06/2017, 9:46 PM.cache/pants_backend_python_tasks_python_binary_create_PythonBinaryCreate
, that's in the buildcache right?