DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21047>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21047 allow to pass definitions to <script> as nested parameter elements or "inheritall" attribute for properties [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-06-25 14:05 ------- You are confusing some things, I'm afraid. When you use java -D... you are not setting environment variables, you set system properties. Setting env variables is not going to help at all, as Jython won't look at them. You will want to set the system property python.home for the Java VM that runs your script task. To do so, set the environment variable ANT_OPTS to -Dpython.home=.\lib\jython. Alternatively you can use a registry in the .jython file in your home directory (no idea whether/how that works on Windows). See thy Jython FAQ http://www.jython.org/cgi-bin/faqw.py?req=index Ant's properties are script variables automatically. To expand property foo, you don't use ${foo} in your script but simply foo. Also, all references get turned into script objects, this includes the Project instance which is access by its name. If your project starts with <project name="kelwit" ...> you can access property jython.sys.path.lib as kelwit.getProperty("jython.sys.path.lib") - it is not accessible via System.getProperty as <property> doesn't set system properties but properties of the Ant project instance. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
