Hi, > When I said LANG, I meant Language I see, but I didn't know what's concreted meaning at that time.
> Assuming you're on Windows, go > Start, Settings, Control Panel, Regional and Language Options and > compare the configuration of both machines. Does Maven related with OS so closely? I'll test it in Linux box, soon. a cup of Java, cheers! Sha Jiang Wayne Fay wrote: > > When I said LANG, I meant Language... Assuming you're on Windows, go > Start, Settings, Control Panel, Regional and Language Options and > compare the configuration of both machines. > > Wayne > > On 4/30/07, jiangshachina <[EMAIL PROTECTED]> wrote: >> >> Hi Wayne, >> Thanks for your help. >> I compared the two "set" output, but didn't find any interesting thing. >> MAVEN_HOME, JAVA_HOME, even ANT_HOME, all of which show that >> the two system are using the same Maven, JDK and Ant >> (In my mind, Ant isn't related to maven-antrun-plugin). >> >> > I'd assume you've got some LANG differences >> > or something like that going on. >> What's the "LANG" differences? >> >> a cup of Java, cheers! >> Sha Jiang >> >> >> Wayne Fay wrote: >> > >> > 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] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10248624 >> 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] > > > -- View this message in context: http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10248863 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
