Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-ant-dev] Using eclipse.incrementalBuild task provid ed by the Eclipse platf orm in a simple ant file

If I remember correctly the default is an incremental build and if it is
not doing anything then maybe there is nothing to be built.

Rodrigo



                                                                                                                                        
                      Brugger Antony                                                                                                    
                      <antony.brugger@wintert        To:       "'platform-ant-dev@xxxxxxxxxxx'" <platform-ant-dev@xxxxxxxxxxx>          
                      hur.be>                        cc:                                                                                
                      Sent by:                       Subject:  RE: [platform-ant-dev] Using eclipse.incrementalBuild task provid        
                      platform-ant-dev-admin@         ed by the Eclipse platf orm in a simple ant file                                  
                      eclipse.org                                                                                                       
                                                                                                                                        
                                                                                                                                        
                      12/06/2002 04:09 AM                                                                                               
                      Please respond to                                                                                                 
                      platform-ant-dev                                                                                                  
                                                                                                                                        
                                                                                                                                        




I found out how to use it:
I removed the task in the task tab of Window/Preference.
I removed the corresponding jars.

The following task is working:

<eclipse.incrementalBuild project="WinterthurAzurApplication" kind
="full"/>


but without the kind attribute it does nothing. (what is the default for
this attribute?)

Antony


-----Original Message-----
From: Brugger Antony
Sent: vendredi 6 décembre 2002 9:31
To: 'platform-ant-dev@xxxxxxxxxxx'
Subject: RE: [platform-ant-dev] Using eclipse.incrementalBuild task
provid ed by the Eclipse platf orm in a simple ant file


I'm using Eclipse 2.0.1

* In the Ant classpath I have the following jars:

eclipse/plugins/org.apache.ant_1.4.1/ant.jar
eclipse/plugins/org.apache.ant_1.4.1/jakarta-ant_1.4.1-optional.jar
eclipse/plugins/org.apache.xerces_4.0.5/xmlParserAPIs.jar
eclipse/plugins/org.apache.xerces_4.0.5/xercesImpl.jar
eclipse/plugins/org.eclipse.core.resources_2.0.1/lib/resources-ant.jar
(eclipse ant task)
eclipse/plugins/org.eclipse.core.resources_2.0.1/lib/resources.jar

* I added the following task in the Tasks tab:

Name: eclipse.incrementalBuild
Class: org.eclipse.core.resources.ant.IncrementalBuild
Library:
eclipse/plugins/org.eclipse.core.resources_2.0.1/lib/resources-ant.jar

When I execute the following ant script (right-click + Run An):

<project name= "Build" default="BuildWar" basedir=".">
  <target name="BuildWar">
    <eclipse.incrementalBuild project="WinterthurAzurApplicatio" kind
="full"/>
  </target>
</project>

I have the following NPE in the Log console:

Build exception: java.lang.NullPointerException
java.lang.NullPointerException
             at
org.eclipse.core.resources.ant.IncrementalBuild.execute(IncrementalBuild.jav

a:72)
             at org.apache.tools.ant.Task.perform(Task.java:217)
             at org.apache.tools.ant.Target.execute(Target.java:184)
             at org.apache.tools.ant.Target.performTasks(Target.java:202)
             at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
             at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
             at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja

va:262)
             at java.lang.reflect.Method.invoke(Native Method)
             at org.eclipse.ant.core.AntRunner.run(AntRunner.java:233)
             at
org.eclipse.ui.externaltools.internal.core.AntFileRunner.execute(AntFileRunn

er.java:59)
             at
org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.executeRunne

r(DefaultRunnerContext.java:413)
             at
org.eclipse.ui.externaltools.internal.core.DefaultRunnerContext.run(DefaultR

unnerContext.java:464)
             at
org.eclipse.ui.externaltools.internal.ui.AntLaunchWizard$1.run(AntLaunchWiza

rd.java:117)
             at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext

.java:98)

And if I add the following jar:

eclipse/plugins/org.eclipse.core.runtime_2.0.1/lib/runtime.jar

I have an error : External tool failed to run. reason: Build failed (in a
dialog window), but nothing in the Log Console.

Cheers

Antony



-----Original Message-----
From: Darin Swanson [mailto:Darin_Swanson@xxxxxxx]
Sent: jeudi 5 décembre 2002 17:11
To: platform-ant-dev@xxxxxxxxxxx
Subject: Re: [platform-ant-dev] Using eclipse.incrementalBuild task
provided by the Eclipse platf orm in a simple ant file



First, as a reference point, which build are you using?

The eclipse.incrementalBuild task, though not visible to the user, will
always be available in the current implementation (see
http://bugs.eclipse.org/bugs/show_bug.cgi?id=27675).

So you should not need to add it as a custom task or add any jars
(classpath entries).

Can you provide a stack trace for the NPE? Or even better log the
NullPointerException with reproducible steps against the platform-ant
component

Thanks
Darins





                      Brugger Antony

                      <antony.brugger@wintert         To:
"'platform-ant-dev@xxxxxxxxxxx'" <platform-ant-dev@xxxxxxxxxxx>

                      hur.be>                         cc:

                      Sent by:                        Subject:
[platform-ant-dev] Using eclipse.incrementalBuild task provided by the
Eclipse platf
                      platform-ant-dev-admin@         orm in a simple ant
file
                      eclipse.org





                      12/05/02 10:02 AM

                      Please respond to

                      platform-ant-dev








Hi,
Is it possible to use the eclipse.incrementalBuild ant task defined int the
Eclipse platform, in an ant file which is in my project using the
right-click + Run Ant... facility of Eclipse.
Actually I want to recompile my Eclipse project before generating a WAR
file: here is an extract of my ant script:
  <!-- Build WAR file -->
  <target name="BuildWar" depends="init">
    <eclipse.incrementalBuild project="MonProjet" kind ="full"/>
    <delete verbose="true" file="MonProjet.war"/>
             <war warfile="MonProjet.war" webxml="
${root.dir}/WEB-INF/web.xml">
               <fileset dir="${root.dir}">
                 <exclude name="**/web.xml"/>
               </fileset>
               <classes dir="${bin.dir}"/>
             </war>
  </target>

I added the task in Window/Preferences/External Tools/Ant, but I have a
null
pointer exception
Maybe I have to ad some jar's, but don't know which one?

Tks

Antony Brugger
antony.brugger@xxxxxxxxxxxx


_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev




_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev






Back to the top