ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vimil Saju <vimils...@yahoo.com>
Subject Re: project.createTask() not working with ant-1.8.2
Date Tue, 15 Feb 2011 15:08:53 GMT
>     /**
>      * Executes the desObfuscate task.
>      */
>     @Override
>     public void execute() throws BuildException
>     {
>         myProject = new Project();
> 
>         // Create ANT tasks
>         Task delete = (Delete)
> myProject.createTask(DELETE_TASK);
> 
>     }
> }

You shouldn't create a new Project object, You should call the getProject() method to get
a reference to the project object under which the obfuscate task is defined.


 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message