You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/06/10 13:45:18 UTC

[GitHub] jglick commented on issue #504: Skip CoS copying of class files when the target is already newer, such as from an external compilation

jglick commented on issue #504: Skip CoS copying of class files when the target is already newer, such as from an external compilation
URL: https://github.com/apache/incubator-netbeans/pull/504#issuecomment-396050212
 
 
   I realized that in the case of Maven there is a way to combine CoS-like recompilation and test run (not sure about main class run) into a single tool execution: create an ephemeral POM in a temp dir listing the open projects with snapshot relationships as `<modules>`, then
   
       mvn resource:copy compiler:compile surefire:test -f /tmp/pom123.xml -DignoreMissingTests -Dtest=MyTest#case
   
   or similar. Compared to using `javax.tools.JavaCompiler` this is a bit safer still, since even POM misinterpretations by the IDE would only affect editor functions, not test runs; and I think the overhead would be modest. (Maven CoS already runs `mvn`.)
   
   TBD what is best for (managed or freeform) Ant- or Gradle-based builds, but this reinforces the notion that the project type can keep CoS functionality closer to the build system.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists