happy-kitchen-89482
02/06/2017, 12:36 AMprepare_resources triviallypurple-oil-45048
02/07/2017, 1:51 AMhappy-kitchen-89482
02/07/2017, 1:53 AMhappy-kitchen-89482
02/07/2017, 1:54 AMhappy-kitchen-89482
02/07/2017, 1:54 AMhappy-kitchen-89482
02/07/2017, 1:54 AMfind_all_relevant_resources_targets(self) look like?purple-oil-45048
02/07/2017, 1:56 AMdef find_all_relevant_resources_targets(self):
# <http://self.context.log.info|self.context.log.info>('targets={}'.format(self.context.targets()))
def is_jvm_app(target):
return isinstance(target, JvmApp)
jvm_apps = self.context.targets(predicate=is_jvm_app)
return jvm_appspurple-oil-45048
02/07/2017, 1:57 AMJvmApp at the moment ..purple-oil-45048
02/07/2017, 1:59 AMBUILD file is as follows:
scala_library(..)
jvm_binary(
name='bin',
dependencies=[
':data-service-lib',
],
main='service.data.DataServer',
)
jvm_app(
name='app',
basename='data-service',
binary=':bin',
)purple-oil-45048
02/07/2017, 2:04 AM.execute in ResourcesTask is already adding the chroot to the classpath ..
In your previously mentioned implementation of ResourcesTask, what fingerprint strategy did you end up using?happy-kitchen-89482
02/07/2017, 2:23 AMhappy-kitchen-89482
02/07/2017, 2:23 AMpurple-oil-45048
02/07/2017, 2:25 AM/pants bundle foo:app you would have seen the generated resource inside the jar?purple-oil-45048
02/08/2017, 12:58 AMhappy-kitchen-89482
02/08/2017, 12:58 AMhappy-kitchen-89482
02/08/2017, 12:58 AMpurple-oil-45048
02/08/2017, 1:00 AMJvmApp can’t have resources .. I now attached it to the JvmBinary instead
2. if there are no resources=[..] on the JvmBinary defined inside the BUILD file, it won’t pick up any resources at all .. so now I simply added a n empty resources=[] targetpurple-oil-45048
02/08/2017, 1:01 AMpurple-oil-45048
02/08/2017, 8:26 AM./pants bundle .. --bundle-jvm-deployjar 🤔purple-oil-45048
02/09/2017, 1:22 AM./pants bundle .. --bundle-jvm-deployjar ?happy-kitchen-89482
02/09/2017, 1:34 AMhappy-kitchen-89482
02/09/2017, 1:34 AMpurple-oil-45048
02/09/2017, 1:38 AMhappy-kitchen-89482
02/09/2017, 9:34 PMhappy-kitchen-89482
02/10/2017, 12:14 AMpurple-oil-45048
02/10/2017, 12:36 AMJarTool was related to this thread ..
[1] https://pantsbuild.slack.com/archives/general/p1486653980002201purple-oil-45048
02/10/2017, 12:36 AMpurple-oil-45048
02/10/2017, 12:42 AMJarTool. There are unit tests explicitly testing the “add directory => all files within the directory will be added” casehappy-kitchen-89482
02/10/2017, 6:37 AMpurple-oil-45048
02/10/2017, 6:41 AMjar_task.Jar#_add_entry andpurple-oil-45048
02/10/2017, 6:42 AM#_render_jar_tool_args .. I think this is where things get lostpurple-oil-45048
02/10/2017, 6:23 PMpurple-oil-45048
02/10/2017, 6:24 PMpurple-oil-45048
02/10/2017, 6:28 PM- COMMAND="./pants run src/java/org/suls/pants:app"
- COMMAND="./pants bundle src/java/org/suls/pants:app && $JAVA_BIN -jar dist/src.java.org.suls.pants.app-bundle/main.jar"
- COMMAND="./pants bundle src/java/org/suls/pants:app --bundle-jvm-deployjar && $JAVA_BIN -jar dist/src.java.org.suls.pants.app-bundle/main.jar"
The last command with --bundle-jvm-deployjar fails to include/bundle the generated resource https://github.com/suls/pants-generated-resources/blob/master/pants-plugins/src/python/org/suls/pants/register.pypurple-oil-45048
02/10/2017, 6:29 PMwitty-crayon-22786
02/10/2017, 6:34 PMhappy-kitchen-89482
02/10/2017, 6:48 PMhappy-kitchen-89482
02/10/2017, 6:49 PMhappy-kitchen-89482
02/10/2017, 6:49 PMhappy-kitchen-89482
02/10/2017, 9:15 PMhappy-kitchen-89482
02/10/2017, 9:16 PMpurple-oil-45048
02/11/2017, 2:04 PMJvmApp? So far I've been using context.target(predicate= hook .. but I don't see how I can say give me the X that is a dependency of Yhappy-kitchen-89482
02/12/2017, 10:41 PMhappy-kitchen-89482
02/12/2017, 10:41 PMhappy-kitchen-89482
02/12/2017, 10:41 PMhappy-kitchen-89482
02/12/2017, 10:42 PMhappy-kitchen-89482
02/12/2017, 10:42 PMhappy-kitchen-89482
02/12/2017, 10:43 PMhappy-kitchen-89482
02/12/2017, 10:43 PMhappy-kitchen-89482
02/12/2017, 10:44 PMhappy-kitchen-89482
02/12/2017, 10:44 PMhappy-kitchen-89482
02/13/2017, 6:23 PMhappy-kitchen-89482
02/13/2017, 6:24 PMhappy-kitchen-89482
02/13/2017, 6:24 PMhappy-kitchen-89482
02/13/2017, 6:24 PMhappy-kitchen-89482
02/13/2017, 6:25 PMhappy-kitchen-89482
02/13/2017, 6:25 PMpurple-oil-45048
02/14/2017, 5:05 AMhappy-kitchen-89482
02/14/2017, 5:06 AMpurple-oil-45048
02/14/2017, 5:07 AM