Hello Juergen, here is what you can do :
- use the ANT_OPTS environment variable to set the system property before you start ant, ie set ANT_OPTS="-Dfoo=bar" on Windows - create a custom task to set a system property in a running VM, (I thought we even had that in ant but I might have dreamt, I do not see it in the manual). A former colleauge actually created such a task in the custom ant tasks library of my day job - set the system property using Javascript and the script task for instance before invoking your task Regards, Antoine -------- Original-Nachricht -------- > Datum: Wed, 19 May 2010 16:56:07 +0200 > Von: "Knuplesch, Juergen" <juergen.knuple...@icongmbh.de> > An: "Ant Users List" <user@ant.apache.org> > Betreff: Java system property > Hello, > > > > I am using my self written Ant tasks and want to set a Java system > property for this task. > > > > Is there a way to pass on Java system properties from the ANT to the > task? > > > > I guess I have to add a certain attribute to my task an do it there... > > > > Greetings Juergen > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org