Isn't this a known bug with the .sh script in that it doesn't handle
spaces in -D args?
On Thu, 10 Jun 2004 11:40:34 +1000, Brett Porter <[EMAIL PROTECTED]> wrote:
>
> I think you really just want the -D parameter with the space in it to be quoted.
>
> - Brett
>
>
>
> Quoting "Morris, Jason [IT]" <[EMAIL PROTECTED]>:
>
> > That won't work because it will put the "-D" after the class name on the
> > command line in the "maven" script. You need to either hack the maven start
> > script or investigate the use of "maven.junit.sysproperties" in
> > project.properties. It has a weird syntax (I copied this from someone else)
> > but you should work it out from this example:
> >
> > testinputs.dir=${basedir}/test_inputs
> > maven.junit.sysproperties=prop1 testinputs.dir
> > prop1=${basedir}/test_inputs
> >
> > I also got a similar reply to the same question yesterday:
> >
> > You can also use ${systemScope.put('key', 'value')} in maven.xml
> >
> > On Tue, 8 Jun 2004 14:43:22 +0100 , Morris, Jason [IT]
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Is there a way to set a System property from any of the Maven config files
> > > (project.properties/project.xml/maven.xml)? I can think of some dodgy ways
> > > to do it using a <preGoal> which calls one of the Ant tasks which allow
> > you
> > > to set <sysproperty> tags - but is there a better way?
> > >
> > > Thanks
> > >
> > > Jason
> > >
> >
> > Hope that makes sense,
> >
> > Jason
> >
> > -----Original Message-----
> > From: Eugene Kirin [mailto:[EMAIL PROTECTED]
> > Sent: 09 June 2004 17:26
> > To: Maven Users List
> > Subject: JVM system property
> >
> >
> > Hello!
> >
> > Please point me how maven works with system property. I get the next
> > problem:
> > When I try to execute under Linux a command "maven
> > -Dcclastbuildtimestamp=20040608174237 -Dlabel=build.11
> > -Dcclastgoodbuildtimestamp=20040608174237 -Dlastbuildsuccessful=false
> > -Dcvstimestamp=2004-06-09 08:36:01 GMT -Dcctimestamp=20040609123601 -X -b -p
> > project.xml site" I always get the following exception:
> >
> > attaining goal build:start
> > attaining goal 08:36:01
> > com.werken.werkz.NoSuchGoalException: No goal [08:36:01]
> > at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:190)
> > at
> > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:531)
> > at org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
> > at org.apache.maven.cli.App.doMain(App.java:466)
> > at org.apache.maven.cli.App.main(App.java:1117)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > )
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> > .java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at com.werken.forehead.Forehead.run(Forehead.java:551)
> > at com.werken.forehead.Forehead.main(Forehead.java:581)
> > Total time: 10 seconds
> >
> > When I put the value of the -Dcvstimestamp key in quotes like this
> > -Dcvstimestamp="2004-06-09 08:36:01 GMT" it doesn't help :( but in
> > Windows2000 it works fine. Please shed light on this problem.
> >
> > Thanks a lot for all your responses!
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]