Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r156 - trunk/src/ise/antelope/tasks/AntCallBack.java

antelope
Discussion topic

Back to topic list

svn commit: r156 - trunk/src/ise/antelope/tasks/AntCallBack.java

Author danson
Full name Dale Anson
Date 2008-06-04 10:29:04 PDT
Message Author: danson
Date: 2008-06-04 10:29:03-0700
New Revision: 156

Modified:
   trunk/src/ise/antelo​pe/tasks/AntCallBack​.java

Log:
updated to use ProjectHelper.configureProject instead of the older parse method. The old method doesn't work when the antcallback task is part of an imported file.

Modified: trunk/src/ise/antelo​pe/tasks/AntCallBack​.java
Url: http://antelope.tigr​is.org/source/browse​/antelope/trunk/src/​ise/antelope/tasks/A​ntCallBack.java?view​=diff&rev=156​&p1=trunk/src/ise/a​ntelope/tasks/AntCal​lBack.java&p2=tr​unk/src/ise/antelope​/tasks/AntCallBack.j​ava&r1=155&r​2=156
====================​====================​====================​==================
--- trunk/src/ise/antelo​pe/tasks/AntCallBack​.java (original)
+++ trunk/src/ise/antelo​pe/tasks/AntCallBack​.java 2008-06-04 10:29:03-0700
@@ -370,7 +370,8 @@
                 + " in build file " + antFile.toString(),
                Project.MSG_VERBOSE );
          newProject.setUserProperty( "ant.file", antFile );
- ProjectHelper.getPro​jectHelper().parse( newProject, new File( antFile ) );
+ ///ProjectHelper.get​ProjectHelper().pars​e( newProject, new File( antFile ) ); // old
+ ProjectHelper.config​ureProject(newProjec​t, new File( antFile )); // needed for Ant 1.7
 
          if ( target == null ) {
             target = newProject.getDefaultTarget();
@@ -389,7 +390,7 @@
          }
 
          newProject.executeTarget( target );
-
+
          // copy back the props if possible
          if ( returnName != null ) {
             StringTokenizer st = new StringTokenizer( returnName, "," );

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r156 - trunk/src/ise/antelope/tasks/AntCallBack.java danson Dale Anson 2008-06-04 10:29:04 PDT
Messages per page: