Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Tue, 28 Dec 2004 2:59 AM
please attach a small test case and reopen.
This worked for me:
$ cat maven.xml
<project>
<goal name="foo">
<property file="my.properties" />
<echo>${foo}</echo>
<echo>${my.property}</echo>
</goal>
</project>
$ cat my.properties
foo=1
my.property=blah
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1521
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1521
Summary: loading properties file via Ant property task does not work from
maven.xml
Type: Bug
Status: Closed
Priority: Major
Resolution: CANNOT REPRODUCE
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
jelly/ant integration
Versions:
1.0.1
Assignee:
Reporter: Ian Springer
Created: Tue, 30 Nov 2004 12:44 PM
Updated: Tue, 28 Dec 2004 2:59 AM
Environment: n/a
Description:
If I have the following line in maven.xml, either within a goal or outside of
any goals:
<property file="my.properties" />
where my.properties exists and is a valid Java props file, any properties that
are in my.properties end up with a value of "0" (yes, simply the zero
character) in Maven.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]