Yup, thats what I meant.... and your test case would read the file with the
filename it gets from System.getProperty("mdb.properties.file1")
Erik
----- Original Message -----
From: "Marcus" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 26, 2001 8:34 PM
Subject: Re: junit specify system properties
> Is this what you mean?
>
> <junit printsummary="yes" fork="yes" haltonfailure="no">
> <!-- <jvmarg
> value="-Dmdb.properties.file=mdb.testsubmitqueryMthread.properties"/> -->
> <sysproperty key="mdb.properties.file"
> value="mdb.testsubmitqueryMthread.properties"/>
> <sysproperty key="mdb.properties.file1" value="minitest"/>
>
> where minitest is a file with:
> minitest questionsfile answerfile 1?
>
>
> ----- Original Message -----
> From: "Erik Hatcher" <[EMAIL PROTECTED]>
> To: "Ant Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 26, 2001 4:59 PM
> Subject: Re: junit specify system properties
>
>
> > Use <sysproperty> rather than <jvmarg>.
> >
> > <junit...>
> > ...
> > <sysproperty key="mdb.properties.file" value="...."/>
> > ...
> > </junit>
> >
> > You can specify as many <sysproperty>'s as you need.
> >
> > Erik
> >
> > ----- Original Message -----
> > From: "Marcus" <[EMAIL PROTECTED]>
> > To: "Ant Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, December 26, 2001 7:37 PM
> > Subject: junit specify system properties
> >
> >
> > HI,
> >
> > I have the following in my code:
> > <junit printsummary="yes" fork="yes" haltonfailure="no">
> > <jvmarg
> > value="-Dmdb.properties.file=mdb.testsubmitqueryMthread.properties "/>
> > <classpath>
> > <fileset dir="${java_deploy_dir}/lib">
> > <include name="*.jar"/>
> > </fileset>
> > <fileset dir="${JLIB}">
> > <include name="*.jar"/>
> > </fileset>
> > </classpath>
> > <formatter type="xml" />
> > <test name="cp_test.system.TestSubmitQueryMThread" />
> > </junit>
> >
> > but i want not only to pass a property file but the code needs
additional
> > parameters pass to it, that meaning our code.
> >
> >
>
cp_test.system.TestSubmitQueryMThread -Dmdb.properties.file=mdb.testsubmitqu
> > eryMthread.properties minitest questionsfile answerfile 1
> >
> > Question: how doe sone pass more args in using junit?
> >
> > Thanks
> > -mez
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>