ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: Methods inside Java ant task
Date Thu, 08 Jun 2006 17:05:42 GMT
Hello,

you need to write a main method which calls the method you want to run.
May be add a main method to util.runtime.TestSingleton.

The only method which can be invoked by <java/> is static void main (String [] args).

Regards,

Antoine
> -------- Original-Nachricht --------
> Datum: Thu, 8 Jun 2006 12:54:04 -0400
> Von: 1800 tbsfunny <1800tbsfunny@gmail.com>
> An: user@ant.apache.org
> Betreff: Methods inside Java ant task
> 
> Hi Ant gurus,
> 
> I am trying to write an Ant task that looks something like that -
> 
> <target name="startcss" description="starting CSS" depends="setup">
>         <java classname="util.runtime.TestSingleton.initialize()"  
> fork="no"
> failonerror="no">
>             <classpath refid="testrunning.classpath"/>
>         </java>
>     </target>
> 
> This fails on me because we cannot run methods directly. Any suggesstions?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message