Type "set" on both machines.
Compare the output.
I'd assume you've got some LANG differences or something like that going on.
Wayne
On 4/29/07, jiangshachina <[EMAIL PROTECTED]> wrote:
Hello,
I'm using Maven 2.0.4 + JDK 1.5.0
I have a web application project.
When running package phase, one of the tasks was using "native2ascii" tool
to convert some files.
I take advantage of maven-ant-run plugin to do the job,
the related scripts is shown as follows,
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>compile</id>
<phase>generate-resources</phase>
<configuration>
<tasks>
<native2ascii encoding="UTF8"
src="src/java" dest="target/classes"
includes="**/*zh_CN.properties" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
Firstly, I finished whole work in one machine, the operation system is
Windows 2000.
When I package the project, all is OK.
Then I copied the same project, same repository and same Maven version to
another machine,
the operation system is Windows XP.
In the new environment, the antrun task didn't work well when I package the
project with same command.
Exactly, maven-antrun-plugin didn't convert any file with "native2ascii"!?
I add "-X" in my command, and respectively package war file in the two
environment.
[1]The debug result in old environment,
[INFO] Executing tasks
[DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
[native2ascii] Converting 17 files from ...\src\java to ...\target\classes
[INFO] Executed tasks
[2]The debug result in new environment,
[INFO] Executing tasks
[DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
[INFO] Executed tasks
According the debug information, I didn't get any reason on the matter :-(
Anybody can help me?
Thanks in advance!
--
View this message in context:
http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10247612
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]