You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2003/03/26 10:52:51 UTC

cvs commit: maven/src/plugins-build/test/xdocs properties.xml

evenisse    2003/03/26 01:52:51

  Modified:    src/plugins-build/test plugin.jelly project.xml
               src/plugins-build/test/xdocs properties.xml
  Log:
  Add jvmarg support for junit.
  Add properties documentation.
  
  Revision  Changes    Path
  1.6       +16 -0     maven/src/plugins-build/test/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/test/plugin.jelly,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- plugin.jelly	20 Mar 2003 14:45:18 -0000	1.5
  +++ plugin.jelly	26 Mar 2003 09:52:51 -0000	1.6
  @@ -76,6 +76,10 @@
           <j:forEach var="someProperty" items="${listOfProperties}">
             <sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
           </j:forEach>
  +        <u:tokenize var="listOfJvmArgs" delim=" ">${maven.junit.jvmargs}</u:tokenize>
  +        <j:forEach var="somejvmarg" items="${listOfJvmArgs}">
  +          <jvmarg value="${somejvmarg}"/>
  +        </j:forEach>
           <formatter type="xml"/>
           <formatter type="plain" usefile="${maven.junit.usefile}"/>
           <classpath>
  @@ -123,6 +127,10 @@
         <j:forEach var="someProperty" items="${listOfProperties}">
           <sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
         </j:forEach>
  +      <u:tokenize var="listOfJvmArgs" delim=" ">${maven.junit.jvmargs}</u:tokenize>
  +      <j:forEach var="somejvmarg" items="${listOfJvmArgs}">
  +        <jvmarg value="${somejvmarg}"/>
  +      </j:forEach>
         <classpath>
           <path refid="maven.dependency.classpath"/>
           <pathelement location="${maven.build.dest}"/>
  @@ -167,6 +175,10 @@
               <j:forEach var="someProperty" items="${listOfProperties}">
                 <sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
               </j:forEach>
  +            <u:tokenize var="listOfJvmArgs" delim=" ">${maven.junit.jvmargs}</u:tokenize>
  +            <j:forEach var="somejvmarg" items="${listOfJvmArgs}">
  +              <jvmarg value="${somejvmarg}"/>
  +            </j:forEach>
               <formatter type="xml"/>
               <formatter type="plain" usefile="false"/>
               <formatter type="plain" usefile="true"/>
  @@ -224,6 +236,10 @@
               <u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
               <j:forEach var="someProperty" items="${listOfProperties}">
                 <sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
  +            </j:forEach>
  +            <u:tokenize var="listOfJvmArgs" delim=" ">${maven.junit.jvmargs}</u:tokenize>
  +            <j:forEach var="somejvmarg" items="${listOfJvmArgs}">
  +              <jvmarg value="${somejvmarg}"/>
               </j:forEach>
               <formatter type="xml"/>
               <formatter type="plain" usefile="false"/>
  
  
  
  1.9       +1 -1      maven/src/plugins-build/test/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/test/project.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- project.xml	19 Mar 2003 05:36:10 -0000	1.8
  +++ project.xml	26 Mar 2003 09:52:51 -0000	1.9
  @@ -5,7 +5,7 @@
     <pomVersion>3</pomVersion>
     <id>maven-test-plugin</id>
     <name>Maven Test Plug-in</name>
  -  <currentVersion>1.2</currentVersion>
  +  <currentVersion>1.3-SNAPSHOT</currentVersion>
     <description/>
     <shortDescription>Java Project Management Tools</shortDescription>
     <url>http://maven.apache.org/reference/plugins/test/</url>
  
  
  
  1.4       +32 -0     maven/src/plugins-build/test/xdocs/properties.xml
  
  Index: properties.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/test/xdocs/properties.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- properties.xml	20 Mar 2003 14:45:18 -0000	1.3
  +++ properties.xml	26 Mar 2003 09:52:51 -0000	1.4
  @@ -137,6 +137,38 @@
               unit testing.  The default value is <code>8192</code>.
             </td>
           </tr>
  +        <tr>
  +          <td>maven.junit.jvmargs</td>
  +          <td>Yes</td>
  +          <td>
  +            If fork is enabled, additional parameters may be passed to the new VM.
  +            You can specify some args separate by space.
  +            Each arg is describe in sub properties. 
  +            Sample :
  +            <source><![CDATA[
  +maven.junit.jvmargs=-Xmx160m -verbose
  +            ]]>
  +            </source>
  +          </td>
  +        </tr>
  +        <tr>
  +          <td>maven.junit.sysproperties</td>
  +          <td>Yes</td>
  +          <td>
  +            Use this property elements to specify system properties required
  +            by the class. These properties will be made available to the VM during
  +            the execution of the test (either Maven's VM or the forked VM, if fork is enabled). 
  +            You can specify system properties separate by space.
  +            Each properties is describe in sub properties. 
  +            Sample :
  +            <source><![CDATA[
  +maven.junit.sysproperties=prop1 basedir
  +prop1=your value
  +basedir=${basedir}
  +            ]]>
  +            </source>
  +          </td>
  +        </tr>
         </table>
       </section>
     </body>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: cvs commit: maven/src/plugins-build/test/xdocs properties.xml

Posted by Ben Walding <de...@walding.com>.
You beat me to committing it! (I had most of it coded, just hadn't got 
around to checking if it worked)

Can't you also do

<jvmarg line="${theproperty}"/>

evenisse@apache.org wrote:

>evenisse    2003/03/26 01:52:51
>
>  Modified:    src/plugins-build/test plugin.jelly project.xml
>               src/plugins-build/test/xdocs properties.xml
>  Log:
>  Add jvmarg support for junit.
>  Add properties documentation.
>  
>  Revision  Changes    Path
>  1.6       +16 -0     maven/src/plugins-build/test/plugin.jelly
>  
>  Index: plugin.jelly
>  ===================================================================
>  RCS file: /home/cvs/maven/src/plugins-build/test/plugin.jelly,v
>  retrieving revision 1.5
>  retrieving revision 1.6
>  diff -u -r1.5 -r1.6
>  --- plugin.jelly	20 Mar 2003 14:45:18 -0000	1.5
>  +++ plugin.jelly	26 Mar 2003 09:52:51 -0000	1.6
>  @@ -76,6 +76,10 @@
>           <j:forEach var="someProperty" items="${listOfProperties}">
>             <sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
>           </j:forEach>
>  +        <u:tokenize var="listOfJvmArgs" delim=" ">${maven.junit.jvmargs}</u:tokenize>
>  +        <j:forEach var="somejvmarg" items="${listOfJvmArgs}">
>  +          <jvmarg value="${somejvmarg}"/>
>  +        </j:forEach>
>           <formatter type="xml"/>
>           <formatter type="plain" usefile="${maven.junit.usefile}"/>
>           <classpath>
>  @@ -123,6 +127,10 @@
>         <j:forEach var="someProperty" items="${listOfProperties}">
>           <sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
>         </j:forEach>
>  +      <u:tokenize var="listOfJvmArgs" delim=" ">${maven.junit.jvmargs}</u:tokenize>
>  +      <j:forEach var="somejvmarg" items="${listOfJvmArgs}">
>  +        <jvmarg value="${somejvmarg}"/>
>  +      </j:forEach>
>         <classpath>
>           <path refid="maven.dependency.classpath"/>
>           <pathelement location="${maven.build.dest}"/>
>  @@ -167,6 +175,10 @@
>               <j:forEach var="someProperty" items="${listOfProperties}">
>                 <sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
>               </j:forEach>
>  +            <u:tokenize var="listOfJvmArgs" delim=" ">${maven.junit.jvmargs}</u:tokenize>
>  +            <j:forEach var="somejvmarg" items="${listOfJvmArgs}">
>  +              <jvmarg value="${somejvmarg}"/>
>  +            </j:forEach>
>               <formatter type="xml"/>
>               <formatter type="plain" usefile="false"/>
>               <formatter type="plain" usefile="true"/>
>  @@ -224,6 +236,10 @@
>               <u:tokenize var="listOfProperties" delim=" ">${maven.junit.sysproperties}</u:tokenize>
>               <j:forEach var="someProperty" items="${listOfProperties}">
>                 <sysproperty key="${someProperty}" value="${context.findVariable(someProperty)}"/>
>  +            </j:forEach>
>  +            <u:tokenize var="listOfJvmArgs" delim=" ">${maven.junit.jvmargs}</u:tokenize>
>  +            <j:forEach var="somejvmarg" items="${listOfJvmArgs}">
>  +              <jvmarg value="${somejvmarg}"/>
>               </j:forEach>
>               <formatter type="xml"/>
>               <formatter type="plain" usefile="false"/>
>  
>  
>  
>  1.9       +1 -1      maven/src/plugins-build/test/project.xml
>  
>  Index: project.xml
>  ===================================================================
>  RCS file: /home/cvs/maven/src/plugins-build/test/project.xml,v
>  retrieving revision 1.8
>  retrieving revision 1.9
>  diff -u -r1.8 -r1.9
>  --- project.xml	19 Mar 2003 05:36:10 -0000	1.8
>  +++ project.xml	26 Mar 2003 09:52:51 -0000	1.9
>  @@ -5,7 +5,7 @@
>     <pomVersion>3</pomVersion>
>     <id>maven-test-plugin</id>
>     <name>Maven Test Plug-in</name>
>  -  <currentVersion>1.2</currentVersion>
>  +  <currentVersion>1.3-SNAPSHOT</currentVersion>
>     <description/>
>     <shortDescription>Java Project Management Tools</shortDescription>
>     <url>http://maven.apache.org/reference/plugins/test/</url>
>  
>  
>  
>  1.4       +32 -0     maven/src/plugins-build/test/xdocs/properties.xml
>  
>  Index: properties.xml
>  ===================================================================
>  RCS file: /home/cvs/maven/src/plugins-build/test/xdocs/properties.xml,v
>  retrieving revision 1.3
>  retrieving revision 1.4
>  diff -u -r1.3 -r1.4
>  --- properties.xml	20 Mar 2003 14:45:18 -0000	1.3
>  +++ properties.xml	26 Mar 2003 09:52:51 -0000	1.4
>  @@ -137,6 +137,38 @@
>               unit testing.  The default value is <code>8192</code>.
>             </td>
>           </tr>
>  +        <tr>
>  +          <td>maven.junit.jvmargs</td>
>  +          <td>Yes</td>
>  +          <td>
>  +            If fork is enabled, additional parameters may be passed to the new VM.
>  +            You can specify some args separate by space.
>  +            Each arg is describe in sub properties. 
>  +            Sample :
>  +            <source><![CDATA[
>  +maven.junit.jvmargs=-Xmx160m -verbose
>  +            ]]>
>  +            </source>
>  +          </td>
>  +        </tr>
>  +        <tr>
>  +          <td>maven.junit.sysproperties</td>
>  +          <td>Yes</td>
>  +          <td>
>  +            Use this property elements to specify system properties required
>  +            by the class. These properties will be made available to the VM during
>  +            the execution of the test (either Maven's VM or the forked VM, if fork is enabled). 
>  +            You can specify system properties separate by space.
>  +            Each properties is describe in sub properties. 
>  +            Sample :
>  +            <source><![CDATA[
>  +maven.junit.sysproperties=prop1 basedir
>  +prop1=your value
>  +basedir=${basedir}
>  +            ]]>
>  +            </source>
>  +          </td>
>  +        </tr>
>         </table>
>       </section>
>     </body>
>  
>  
>  
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>For additional commands, e-mail: dev-help@maven.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org