ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gao Lin <>
Subject How to run java source code in ant target
Date Fri, 04 Sep 2009 08:21:47 GMT

  Is there an existed ant target to execute plain java source code?

  I need to run one java statement before junit target, I don`t want
to create a separated main class for this, it is possible to run the
code directly?


<target name="run-java-source-code">
    <execute classpath="run.classpath">
             System.out.println("execute plain Java source code in ant target");

Thanks and Best Regards

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message