mysterious-action-44812
02/14/2017, 1:29 AMwitty-crayon-22786
02/14/2017, 1:30 AMwitty-crayon-22786
02/14/2017, 1:31 AMwitty-crayon-22786
02/14/2017, 1:31 AMwitty-crayon-22786
02/14/2017, 1:32 AMstraight-waiter-86090
02/14/2017, 1:44 PMSimpleCodegenTask
that generates Resources
as its synthetic_target_type
.straight-waiter-86090
02/14/2017, 1:44 PM.pants.d
but not in the jar.straight-waiter-86090
02/14/2017, 1:45 PMpurple-oil-45048
02/14/2017, 2:17 PM--bundle-jvm-deployjar
the github repo is your thing. If you need a single-jar, you need to go down the synthetic target road .. which I have not done yetstraight-waiter-86090
02/14/2017, 2:22 PMstraight-waiter-86090
02/14/2017, 2:26 PMā pants-generated-resources git:(master) jar tf dist/src.java.org.suls.pants.app-bundle/libs/src.java.org.suls.pants.app-0.jar
META-INF/
META-INF/MANIFEST.MF
generated.properties
straight-waiter-86090
02/14/2017, 2:27 PMstraight-waiter-86090
02/14/2017, 2:27 PMpurple-oil-45048
02/14/2017, 2:28 PMstraight-waiter-86090
02/14/2017, 2:43 PMstraight-waiter-86090
02/14/2017, 3:14 PMjava_library
with some resources generated by transforming some source files. Iām not sure if the approach here will work for that case.enough-sundown-78166
02/14/2017, 3:17 PMenough-sundown-78166
02/14/2017, 3:18 PMstraight-waiter-86090
02/14/2017, 3:20 PMhigh-advantage-47550
02/14/2017, 5:58 PMfull-kilobyte-93429
02/14/2017, 6:03 PM./pants help-advanced compile.zinc
...
--compile-zinc-unused-deps=<str> (one of: [ignore, warn, fatal] default: 'warn')
Controls whether unused deps are checked, and whether they cause warnings or
errors.
we turn this off at twitter because there could be false positives, tracked by https://github.com/pantsbuild/pants/issues/3669high-advantage-47550
02/14/2017, 6:06 PMwitty-crayon-22786
02/14/2017, 7:24 PMstraight-waiter-86090
02/14/2017, 7:28 PMnode_modules
. In my case, I would want to depend on some node_modules, run some code in node using those modules, then archive/bundle the output created.witty-crayon-22786
02/14/2017, 7:29 PMinstall
portion of the node_modules
, i believe that it would run. cc @brash-cricket-7489witty-crayon-22786
02/14/2017, 7:30 PMstraight-waiter-86090
02/14/2017, 7:31 PMinstall
step would need to access source files as well, since the source files (.less files) are transformed into the output (.css).straight-waiter-86090
02/14/2017, 7:32 PMstraight-waiter-86090
02/14/2017, 8:40 PMwitty-crayon-22786
02/14/2017, 8:42 PM