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" <[email protected]> > An: "Ant Users List" <[email protected]> > 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: [email protected] For additional commands, e-mail: [email protected]
