DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42263>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42263 ------- Additional Comments From [EMAIL PROTECTED] 2007-05-14 07:37 ------- (In reply to comment #2) > as you can see, we dont get ant.version passed down in subant, more importanly > we dont get any other ant built in props handed down. > ] > What#s happening is that the Ant init code creates a new project and calls > setJavaVersionProperty(), whereas it maybe ought to be doing something like > initProperties(): > > > public void initProperties() throws BuildException { > setJavaVersionProperty(); > setSystemProperties(); > setPropertyInternal(MagicNames.ANT_VERSION, Main.getAntVersion()); > setAntLib(); > } > > > As it is, there's probably a fair bit of the initial state of a subant project > that isnt being set up right. > > What to do? > (a) stay broken and hope nobody notices > (b) fix and hope nothing breaks. > > if (b), what do we pass down? Everything from initProperties()? Yep, probably so. Looks like the right thing to do is replace newProject.setJavaVersionProperty() with newProject.init() in Ant.init() IMO. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]