ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avlesh Singh <avl...@gmail.com>
Subject Re: How to run java source code in ant target
Date Fri, 04 Sep 2009 08:27:19 GMT
Looking for this? - http://ant.apache.org/manual/OptionalTasks/script.html

Cheers
Avlesh

On Fri, Sep 4, 2009 at 1:51 PM, Gao Lin <aoingl@gmail.com> wrote:

> HI:
>
>  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?
>
> like:
>
> <target name="run-java-source-code">
>    <execute classpath="run.classpath">
>             System.out.println("execute plain Java source code in ant
> target");
>    </execute>
> </target>
>
> --
> Thanks and Best Regards
>
> aoingl@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message