We are using the new JDK1.4-asserts and then I have
set the maven.compile.source-property to 1.4 so that
the javac will understand them.
This will work for the java-plugin but unfortunately
the test-plugin ignores this setting. I copied the
code from java-plugin to the test-plugin which
includes a bunch of other properties it ignored too.

Works for me.

_____________________________________________________
Gratis e-mail resten av livet p� www.yahoo.se/mail
Busenkelt!
? bin
? maven-navigation-1.0.xsd
? maven-project.xsd
? patchfile.txt
? plugins
? repository
? src/plugins-build/examples/target/assemblyDir
? src/plugins-build/examples/target/maven-examples-plugin-1.1-SNAPSHOT.jar
? src/plugins-build/examples/target/reactor-reports
Index: src/plugins-build/test/plugin.jelly
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/plugins-build/test/plugin.jelly,v
retrieving revision 1.22
diff -c -r1.22 plugin.jelly
*** src/plugins-build/test/plugin.jelly 1 Nov 2002 16:52:25 -0000       1.22
--- src/plugins-build/test/plugin.jelly 22 Nov 2002 08:33:06 -0000
***************
*** 34,39 ****
--- 34,63 ----
          <src>
            <path location="${pom.build.unitTestSourceDirectory}"/>        
          </src>
+ 
+           <j:if test="${context.getVariable('maven.compile.compilerargs') != null}">
+             <compilerarg line="${maven.compile.compilerargs}" />
+           </j:if>
+ 
+           <j:if test="${context.getVariable('maven.compile.encoding') != null}">
+             <setProperty name="encoding" value="${maven.compile.encoding}" />
+           </j:if>
+ 
+           <j:if test="${context.getVariable('maven.compile.executable') != null}">
+             <setProperty name="executable" value="${maven.compile.executable}" />
+           </j:if>
+ 
+           <j:if test="${context.getVariable('maven.compile.fork') != null}">
+             <setProperty name="fork" value="${maven.compile.fork}" />
+           </j:if>
+ 
+           <j:if test="${context.getVariable('maven.compile.source') != null}">
+             <setProperty name="source" value="${maven.compile.source}" />
+           </j:if>
+ 
+           <j:if test="${context.getVariable('maven.compile.target') != null}">
+             <setProperty name="target" value="${maven.compile.target}" />
+           </j:if>
        </javac>
  
      </j:if>
***************
*** 104,120 ****
          prereqs="test:compile">
          
      <java classname="junit.swingui.TestRunner" fork="yes">
!       <sysproperty key="basedir" value="${basedir}"/>
!       <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>
!       <classpath>
!         <path refid="maven.dependency.classpath"/>
!         <pathelement location="${maven.build.dest}"/>
!         <pathelement location="${maven.test.dest}"/>
!         <pathelement path="${plugin.getDependencyPath('junit')}"/>
!       </classpath>
        <arg value="-noloading"/>
      </java>
          
--- 128,138 ----
          prereqs="test:compile">
          
      <java classname="junit.swingui.TestRunner" fork="yes">
!         <classpath>
!           <path refid="maven.dependency.classpath"/>
!           <pathelement location="${maven.build.dest}"/>
!           <pathelement location="${maven.test.dest}"/>
!         </classpath>
        <arg value="-noloading"/>
      </java>
          
***************
*** 161,167 ****
                <path refid="maven.dependency.classpath"/>
                <pathelement location="${maven.build.dest}"/>
                <pathelement location="${maven.test.dest}"/>
-               <pathelement path="${plugin.getDependencyPath('junit')}"/>
              </classpath>
  
              <test name="${testcase}" todir="${maven.test.reportsDirectory}"/>
--- 179,184 ----
***************
*** 219,225 ****
                <path refid="maven.dependency.classpath"/>
                <pathelement location="${maven.build.dest}"/>
                <pathelement location="${maven.test.dest}"/>
-               <pathelement path="${plugin.getDependencyPath('junit')}"/>
              </classpath>
  
              <batchtest todir="${maven.test.reportsDirectory}">
--- 236,241 ----

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to