ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Travis Cripps <tra...@apparentmotion.com>
Subject Class org.apache.tools.ant.types.PatternSet$NameEntry doesn't support the "value" attribute.
Date Fri, 11 Feb 2005 23:46:20 GMT
Hi.  I've got a strange error in my build script, and I've been unable  
to find references to the error code in extensive searches on the  
internet.  I've been poring over the build script for almost 2 days,  
but I must be blind or something, as I can't see where the problem  
would be.  I have a similar script, upon which I'm basing this script,  
and it builds fine.  I'd appreciate any help to understand the error,  
what might cause it, and how I could fix it. :)

The pertinent information:

MacOS X 10.2.8 with Java 1.4.2-38
Ant 1.6.1
WOProject Ant task (http://objectstyle.org/woproject/).  I'm pretty  
sure the problem isn't WOProject, because my other script builds  
correctly...)

I've got tons of output from the verbose and debug flags, bug still  
haven't understood what's wrong.  The script's verbose output and error  
messages are below, as well as the parts of the script that are  
pertinent.

Thank you very much.

Travis Cripps


======================== Script Output ========================

Apache Ant version 1.6.1 compiled on June 16 2004
Buildfile: build.xml
Detected Java version: 1.4 in:  
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home
Detected OS: Mac OS X
parsing buildfile  
/Users/travis/Projects/Workspace/branches/2_12_patch/build.xml with URI  
= file:///Users/travis/Projects/Workspace/branches/2_12_patch/build.xml
Project base dir set to:  
/Users/travis/Projects/Workspace/branches/2_12_patch
Build sequence for target `compile' is [compile]
Complete build sequence is [compile, clean, install, all, ]

compile:
Project base dir set to:  
/Users/travis/Projects/Workspace/branches/2_12_patch
       [ant] calling target all.compile in build file  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml
parsing buildfile  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml with URI =  
file:///Users/travis/Projects/Workspace/branches/2_12_patch/Build/ 
build/generic.xml
Project base dir set to:  
/Users/travis/Projects/Workspace/branches/2_12_patch
       [ant] Entering  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml...
Build sequence for target `all.compile' is [AntoineMail.all,  
QCFoundation.all, Element5Foundation.all, core.all, POMSFoundation.all,  
POMSModel.all, POMSReports.all, frameworks.all, PGPVAR.all,  
EDI-XML.all, applications.all, all.compile]
Complete build sequence is [AntoineMail.all, QCFoundation.all,  
Element5Foundation.all, core.all, POMSFoundation.all, POMSModel.all,  
POMSReports.all, frameworks.all, PGPVAR.all, EDI-XML.all,  
applications.all, all.compile, QCReports.all, global.environment,  
global.properties, global.clean.framework, generic.install,  
generic.clean, global.prepare, generic.web, generic, all.web, web,  
SomeNewProject.all, usage, generic., frameworks.all.install,  
global.install.application, generic.all, all, global.compile,  
global.clean.application, known.install, all.clean, known.,  
applications.all.install, all.install, install, global.framework,  
global.web.framework, global.install.framework, clean,  
global.application, global.web.application, known.web, known.clean, ]

AntoineMail.all:
Project base dir set to:  
/Users/travis/Projects/Workspace/branches/2_12_patch
   [antcall] calling target global.framework in build file  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml
parsing buildfile  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml with URI =  
file:///Users/travis/Projects/Workspace/branches/2_12_patch/Build/ 
build/generic.xml
Project base dir set to:  
/Users/travis/Projects/Workspace/branches/2_12_patch
Build sequence for target `global.framework' is [global.environment,  
global.properties, global.prepare, global.compile, global.framework]
Complete build sequence is [global.environment, global.properties,  
global.prepare, global.compile, global.framework, QCReports.all,  
global.clean.framework, POMSModel.all, generic.install, generic.clean,  
generic.web, generic, all.web, web, Element5Foundation.all,  
SomeNewProject.all, usage, generic., frameworks.all.install,  
EDI-XML.all, global.install.application, generic.all, POMSReports.all,  
AntoineMail.all, QCFoundation.all, core.all, POMSFoundation.all,  
frameworks.all, PGPVAR.all, applications.all, all.compile, all,  
global.clean.application, known.install, all.clean, known.,  
applications.all.install, all.install, install, global.web.framework,  
global.install.framework, clean, global.application,  
global.web.application, known.web, known.clean, ]
   [antcall] Entering  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml...
Build sequence for target `global.framework' is [global.environment,  
global.properties, global.prepare, global.compile, global.framework]
Complete build sequence is [global.environment, global.properties,  
global.prepare, global.compile, global.framework, QCReports.all,  
global.clean.framework, POMSModel.all, generic.install, generic.clean,  
generic.web, generic, all.web, web, Element5Foundation.all,  
SomeNewProject.all, usage, generic., frameworks.all.install,  
EDI-XML.all, global.install.application, generic.all, POMSReports.all,  
AntoineMail.all, QCFoundation.all, core.all, POMSFoundation.all,  
frameworks.all, PGPVAR.all, applications.all, all.compile, all,  
global.clean.application, known.install, all.clean, known.,  
applications.all.install, all.install, install, global.web.framework,  
global.install.framework, clean, global.application,  
global.web.application, known.web, known.clean, ]

global.environment:
  [property] Loading  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
build.properties
  [property] Unable to find property file:  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
build.properties
  [property] Loading /Users/travis/build.properties
  [property] Unable to find property file: /Users/travis/build.properties
  [property] Loading  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
default.properties
Override ignored for property project.name
  [property] Loading  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/Mac OS  
X.properties
Override ignored for property wo.server.root
  [property] Loading  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
default-os.properties
Override ignored for property wo.server.root
Override ignored for property wo.woroot
Override ignored for property wo.localroot
Override ignored for property wo.woroot
Override ignored for property wo.localroot
Property ${project.type} has not been set

global.properties:

global.prepare:

global.compile:
   [antcall] Exiting  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml.
       [ant] Exiting  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml.

BUILD FAILED
/Users/travis/Projects/Workspace/branches/2_12_patch/build.xml:18:  
Following error occured while executing this line
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:658: Following error occured while executing this line
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:255: Class org.apache.tools.ant.types.PatternSet$NameEntry  
doesn't support the "value" attribute.
         at  
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe 
lper.java:537)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
         at  
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at  
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Caused by:  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:658: Following error occured while executing this line
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:255: Class org.apache.tools.ant.types.PatternSet$NameEntry  
doesn't support the "value" attribute.
         at  
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe 
lper.java:537)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
         at  
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
         at  
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         ... 10 more
Caused by:  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:255: Class org.apache.tools.ant.types.PatternSet$NameEntry  
doesn't support the "value" attribute.
         at  
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelpe 
r.java:500)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:369)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:395)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:395)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at org.apache.tools.ant.Task.maybeConfigure(Task.java:255)
         at  
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:183)
         at  
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java: 
152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         ... 17 more
--- Nested Exception ---
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:658: Following error occured while executing this line
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:255: Class org.apache.tools.ant.types.PatternSet$NameEntry  
doesn't support the "value" attribute.
         at  
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHe 
lper.java:537)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385)
         at  
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
         at  
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         at  
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at  
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Caused by:  
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:255: Class org.apache.tools.ant.types.PatternSet$NameEntry  
doesn't support the "value" attribute.
         at  
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelpe 
r.java:500)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:369)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:395)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:395)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at org.apache.tools.ant.Task.maybeConfigure(Task.java:255)
         at  
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:183)
         at  
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java: 
152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         ... 17 more
--- Nested Exception ---
/Users/travis/Projects/Workspace/branches/2_12_patch/Build/build/ 
generic.xml:255: Class org.apache.tools.ant.types.PatternSet$NameEntry  
doesn't support the "value" attribute.
         at  
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelpe 
r.java:500)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:369)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:395)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:395)
         at  
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura 
ble.java:323)
         at org.apache.tools.ant.Task.maybeConfigure(Task.java:255)
         at  
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:183)
         at  
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java: 
152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         at  
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
         at  
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         at  
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at  
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

Total time: 4 seconds

======================== End Script Output ========================



======================== Script Bits ========================

The pertinent bits from my build file (generic.xml) are:

<target name="AntoineMail.all">
         <antcall target="global.framework" >
             <param name="project.principal.class" value="" />
             <param name="project.name" value="AntoineMail" />
             <param name="project.dir" value="AntoineMail" />
         </antcall>
     </target>

...

<target name="global.properties" depends="global.environment">
         <description>
         The global.properties target loads some base properties from  
the environment and sets values to be used later in the script.
         </description>

         <property name="framework.name"  
value="${project.name}.framework" />
         <property name="build.framework.dir"  
value="${build.root}/${framework.name}" />
     </target>

...

<target name="global.prepare" depends="global.properties">
         <description>
         The global.prepare target loads loads the necessary jars  
(WOProject, Cayenne, etc.) from the build lib directory and prepares  
the build folder structure.
         </description>

         <path id="ant.classpath">
             <fileset dir="${root}/Build/">
                 <include name="lib/*.jar"/>
             </fileset>
         </path>
         <mkdir dir="${project.dir}/Libraries" />
         <mkdir dir="${project.dir}/Sources" />
         <mkdir dir="${project.dir}/Resources" />
         <mkdir dir="${project.dir}/Components" />
         <mkdir dir="${project.dir}/WebServerResources" />
         <mkdir dir="${build.root}" />
         <mkdir dir="${build.classes}" />
     </target>


<target name="global.compile" depends="global.prepare">
         <description>
         The global.compile target sets several conditions that include  
frameworks and libraries into the build, based on the dependencies of  
project being compiled and compiles the project.
         </description>

          <taskdef name="wocompile"  
classname="org.objectstyle.woproject.ant.WOCompile">
             <!-- include the libraries in the ant.classpath from above  
-->
             <classpath refid="ant.classpath"/>
         </taskdef>

         <wocompile srcdir="${project.dir}" destdir="${build.classes}"  
debug="on" optimize="off" deprecation="on">
             <classpath>
                 <fileset dir="${project.dir}">
                     <include name="**/*.jar" />
                 </fileset>
             </classpath>

             <frameworks root="${lib.root}" if="use.antoinemail">
                 <include name="AntoineMail.framework" />
             </frameworks>

            <!-- Include WebObjects base frameworks -->
             <frameworks root="${wo.woroot}/Library/Frameworks">
                 <include name="JavaFoundation.framework" />
                 <include name="JavaEOAccess.framework" />
                 <include name="JavaEOControl.framework" />
                 <include name="JavaWebObjects.framework" />
                 <include name="JavaWOExtensions.framework" />
                 <include name="JavaWOJSPServlet.framework" />
                 <include name="JavaPlot.framework" />
                 <include name="JavaJDBCAdaptor.framework" />
                 <include name="JavaXML.framework" />
             </frameworks>
         </wocompile>
     </target>

<target name="global.framework" depends="global.properties,  
global.compile">
         <description>
         The global.framework target compiles a WebObjects framework  
using the WOProject (http://objectstyle.org/woproject/) ant tasks.
         </description>

         <!-- Make the build directory -->
         <mkdir dir="${build.framework.dir}" />

         <!-- Compile the framework -->
         <taskdef name="woframework"  
classname="org.objectstyle.woproject.ant.WOFramework">
             <classpath refid="ant.classpath"/>
         </taskdef>

         <!-- Define what to do with files in the framework project. -->
         <woframework name="${project.name}" destDir="${build.root}"  
principalClass="${project.principal.class}" jarName="${project.name}">
             <lib dir="${project.dir}">
                 <include name="**/*.jar" />
             </lib>
             <classes dir="${build.classes}">
                 <include name="**/*.class" />
             </classes>
             <resources dir="${project.dir}">
                 <include name="**.api" />
                 <include name="**/*.wo/**" />
             </resources>
             <resources dir="${project.dir}">
                 <include name="*.eomodeld/**" />
                 <include name="**/*.plist" />
                 <include name="**/*.d2wmodel" />
                 <include name="**/Properties" />
                 <include name="**/*.strings" />
                 <include name="**/*.sh" />
                 <include name="**/*.dat" />
                 <include name="**/mime.types" />

                 <!-- <include name="**/*.*" /> -->
             </resources>
             <wsresources dir="${project.dir}">
                 <include name="**/*.gif" />
                 <include name="**/*.jpeg" />
                 <include name="**/*.jpg" />
                 <include name="**/*.js" />
                 <include name="**/*.css" />
                 <include name="**/*.html" />
             </wsresources>
         </woframework>

         <echo message="-------------------------------------" />
         <echo message="${project.name}.framework done" />
         <echo message="-------------------------------------" />
     </target>


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


Mime
View raw message