source refresh after running ant task [message #251955] |
Mon, 10 March 2008 09:45  |
Eclipse User |
|
|
|
Hello,
I have an ant task that generates code (using JAXB's xjc task). After the
task is run I need to refresh the source tree, to that the newly generated
classes are picked up. Is there any way to do the refresh from within the
ant task?
Thanks,
Zohar
|
|
|
|
|
|
Re: source refresh after running ant task [message #251990 is a reply to message #251987] |
Tue, 11 March 2008 09:57  |
Eclipse User |
|
|
|
The Ant builds needs to run in the same VM as Eclipse itself. See your
launch configuration for this setting.
Greets
Benny
zohar wrote:
> I get:
>
> BUILD FAILED
> c:\myWork\build.xml:193: Problem: failed to create task or type
> eclipse.refreshLocal
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken
> place.
>
> "valere fedronic" <valere.fedronic.ext@streamezzo.com> wrote in message
> news:fr5nni$ldc$1@build.eclipse.org...
>> Hi,
>> <eclipse.refreshLocal resource="MyProject/MyFolder" depth="infinite"/>
>>
>> * resource is a resource path relative to the workspace
>> * depth can be one of the following: zero, one or infinite
>>
>> http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ant_eclipse_tasks.htm
>>
>>
>>
>> Valere.
>>
>>
>> zohar a écrit :
>>> Hello,
>>> I have an ant task that generates code (using JAXB's xjc task). After
>>> the task is run I need to refresh the source tree, to that the newly
>>> generated classes are picked up. Is there any way to do the refresh
>>> from within the ant task?
>>>
>>> Thanks,
>>> Zohar
>
|
|
|
Powered by
FUDForum. Page generated in 0.03674 seconds