ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnauld Van Muysewinkel (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (IVYDE-257) Trying to override old definition of task buildnumber
Date Wed, 15 Sep 2010 06:20:35 GMT

    [ https://issues.apache.org/jira/browse/IVYDE-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909606#action_12909606
] 

Arnauld Van Muysewinkel edited comment on IVYDE-257 at 9/15/10 2:19 AM:
------------------------------------------------------------------------

Today I went further with the testing of this issue.
I managed to reproduce it in a clean environment, re-created from scratch.

 - Running under Windows XP SP2, JRE 1.6.0_07
 - Downloaded Eclipse Galileo SR2, Java Edition. Checked the MD5 sum. Unzipped it.
 - Started eclipse
 - Checked for updates (there were none)
 - Add new software update site: http://www.apache.org/dist/ant/ivyde/updatesite
 - Install new software:     Apache IvyDE	2.1.0.201008101807-RELEASE
 - Restarted eclipse

 - Create new java project (initially empty)
 - Create new file build.xml (content as described above, in the bug description)
 - Select the file >> Right-click >> Run as >> Ant build
--> Success

 - Modify the build file as follows:
<<
<?xml version="1.0" encoding="UTF-8"?>
<project name="Test" default="test" xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="test" description="Test">
<buildnumber file="test_number.txt"/>
<ivy:var name="nm" value="val" prefix="test"/>
</target>
</project>
>>
--> BUILD FAILED
(...)\build.xml:5: Problem: failed to create task or type antlib:org.apache.ivy.ant:var
Cause: The name is undefined.

 - Install new software:     Apache Ivy	2.2.0.cr1_20100629224905
 - Restarted eclipse
 - Run the build file:
Trying to override old definition of task buildnumber
test:
BUILD FAILED
(...)\build.xml:4: buildnumber doesn't support the "file" attribute

 - Modify Ant runtime Global entries, add external jar: (...)\eclipse-3.5.2\plugins\org.apache.ivy_2.2.0.cr1_20100629224905.jar
 - Run the build file: still fails

 - Uninstall software:   Apache Ivy	2.2.0.cr1_20100629224905	org.apache.ivy.feature.feature.group
 - Restarted eclipse
 - Run the build file:
Buildfile: (...)\build.xml
test:
  [ivy:var] :: Ivy 2.2.0-rc1 - 20100629224905 :: http://ant.apache.org/ivy/ ::
  [ivy:var] :: loading settings :: url = jar:file:/(...)/eclipse-3.5.2/plugins/org.apache.ivy_2.2.0.cr1_20100629224905.jar!/org/apache/ivy/core/settings/ivysettings.xml
BUILD SUCCESSFUL
Total time: 2 seconds

      was (Author: arnauldvm):
    Today I went further with the testing of this issue.
I managed to reproduce it in a clean environment, re-created from scratch.

 - Running under Windows XP SP2, JRE 1.6.0_07
 - Downloaded Eclipse Galileo SR2, Java Edition. Checked the MD5 sum. Unzipped it.
 - Started eclipse
 - Checked for updates (there were none)
 - Add new software update site: http://www.apache.org/dist/ant/ivyde/updatesite
 - Install new software:     Apache IvyDE	2.1.0.201008101807-RELEASE
 - Restarted eclipse

 - Create new java project (initially empty)
 - Create new file build.xml (content as described above, in the bug description)
 - Select the file >> Right-click >> Run as >> Ant build
--> Success

 - Modify the build file as follows:
<<
<?xml version="1.0" encoding="UTF-8"?>
<project name="Test" default="test" xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="test" description="Test">
<buildnumber file="test_number.txt"/>
<ivy:var name="nm" value="val" prefix="test"/>
</target>
</project>
>>
--> BUILD FAILED
(...)\build.xml:5: Problem: failed to create task or type antlib:org.apache.ivy.ant:var
Cause: The name is undefined.

 - Install new software:     Apache Ivy	2.2.0.cr1_20100629224905
 - Restarted eclipse
 - Run the build file:
Trying to override old definition of task buildnumber
test:

BUILD FAILED
(...)\build.xml:4: buildnumber doesn't support the "file" attribute

 - Modify Ant runtime Global entries, add external jar: (...)\eclipse-3.5.2\plugins\org.apache.ivy_2.2.0.cr1_20100629224905.jar
 - Run the build file: still fails

 - Uninstall software:   Apache Ivy	2.2.0.cr1_20100629224905	org.apache.ivy.feature.feature.group
 - Restarted eclipse
 - Run the build file:
Buildfile: (...)\build.xml
test:
  [ivy:var] :: Ivy 2.2.0-rc1 - 20100629224905 :: http://ant.apache.org/ivy/ ::
  [ivy:var] :: loading settings :: url = jar:file:/(...)/eclipse-3.5.2/plugins/org.apache.ivy_2.2.0.cr1_20100629224905.jar!/org/apache/ivy/core/settings/ivysettings.xml
BUILD SUCCESSFUL
Total time: 2 seconds
  
> Trying to override old definition of task buildnumber
> -----------------------------------------------------
>
>                 Key: IVYDE-257
>                 URL: https://issues.apache.org/jira/browse/IVYDE-257
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Eclipse 3.5SR2 (Ant 1.7.1) - JDK 1.6u2 + "Apache Ivy" bundle (org.apache.ivy.feature.feature.group)
[2.0.0, 2.1.0, 2.2.0.cr1]
>            Reporter: Arnauld Van Muysewinkel
>
> I create an empty project.
> The only file I have is build.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="Test" default="test">
>   <target name="test" description="Test">
>     <buildnumber file="test_number.txt"/>
>   </target>
> </project>
> I start the ant build from Eclipse and get the following output:
> <<
> Buildfile: (...)\build.xml
> Trying to override old definition of task buildnumber
> test:
> BUILD FAILED
> (...)\build.xml:5: buildnumber doesn't support the "file" attribute
> >>
> It seems that the standard ant task "buildnumber" has been overrridden by Ivy.
> Given my build file, it shouldn't even try to load ivy tasks!
> I also tried to force load Ivy tasks with a prefix (adding  xmlns:ivy="antlib:org.apache.ivy.ant"
to the project definition), but to no avail.
> Note that if I start the ant build from the command line, everything is fine:
> <<
> >ant -lib (...)\eclipse-3.5\plugins\org.apache.ivy.eclipse.ant_2.2.0.cr1_20100629224905.jar
test
> [-lib (...)\eclipse-3.5\plugins\org.apache.ivy.eclipse.ant_2.2.0.cr1_20100629224905.jar]
> [-lib (...)\eclipse-3.5\plugins\org.apache.ivy.eclipse.ant_2.2.0.cr1_20100629224905.jar
test]
> Buildfile: build.xml
> test:
> BUILD SUCCESSFUL
> Total time: 0 seconds
> >ls
> build.xml  test_number.txt
> >cat test_number.txt
> #Build Number for ANT. Do not edit!
> #Tue Sep 14 14:36:15 CEST 2010
> build.number=2
> >>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message