ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23701] New: - xmlproperty can't be used outside a target
Date Thu, 09 Oct 2003 14:09:24 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23701>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23701

xmlproperty can't be used outside a target

           Summary: xmlproperty can't be used outside a target
           Product: Ant
           Version: 1.5.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: UNCONFIRMED
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: etaix@es2i.com


I wanted to replace a "property" tag which load my properties from my conf file 
by using "xmlproperty" tag and converting my text conf file to xml data.
Here is my build file :
<?xml version="1.0"?>
<!DOCTYPE project [
  <!ENTITY commonBuild SYSTEM "../make/commonBuild.xml">
]>

<project basedir="." default="main" name="ProjectBuild">   
   <xmlproperty file="D:/Projets/eSirius/build.properties.xml"/>  
   <!-- Insert common build file -->
   &commonBuild;
</project>
And here is the result :
BUILD FAILED
file:D:/Projets/eSirius/build.xml:7: Unexpected element "xmlproperty"
        at org.apache.tools.ant.helper.ProjectHelperImpl.parse
(ProjectHelperImpl.java:170)
        at org.apache.tools.ant.ProjectHelper.configureProject
(ProjectHelper.java:117)
        at org.apache.tools.ant.Main.runBuild(Main.java:596)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
I lauch ant with -debug to verify if XmlProperty have been loaded and it was.

I resolve this by using "xmlproperty" tag inside a "target" tag. But i want ot 
load my properties for each target (so outside a specific target).

Hope this will help you.

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


Mime
View raw message