cleaned up classpaths some
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 22 Aug 2005 22:14:42 +0000 (22:14 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 22 Aug 2005 22:14:42 +0000 (22:14 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1816 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

custom/extension-build.xml

index 698fb52..1894c4f 100644 (file)
@@ -9,20 +9,24 @@
 -->
 <project name="Shibboleth-Extensions" default="ext-invoke" basedir=".">
 
-    <path id="ext.path">
+    <!-- Classpath for compiling an extension -->
+    <path id="ext-compile-path">
         <!-- Shibboleth Libraries -->
         <path refid="build.path" />
 
-        <!-- Shibboleth Classes -->
-        <pathelement location="${build}" />
-
-        <!-- Extension libraries -->
+        <!-- Extension's libraries -->
         <fileset dir="${ext.lib}">
             <include name="**/*.jar" />
         </fileset>
 
         <!-- Extension classes -->
         <pathelement location="${ext.classes}" />
+    </path>
+    
+    <!-- Classpath for testing an extension -->
+    <path id="ext-test-path">
+       <!-- Extension Compilation Path -->
+        <path refid="ext-compile-path" />
         
         <!-- Extension test classes -->
         <pathelement location="${ext.test.classes}" />
                 <echo message="Compiling extension source" />
                 <javac srcdir="${ext.src}"
                        destdir="${ext.classes}"
-                       classpathref="ext.path"
+                       classpathref="ext-compile-path"
                        includes="**/*.java"
                        debug="on"
                        source="1.4"
                         <echo message="Compiling extension test source" />
                         <javac srcdir="${ext.test.src}"
                                destdir="${ext.test.classes}"
-                               classpathref="ext.path"
+                               classpathref="ext-compile-path"
                                includes="**/*.java"
                                debug="on"
                                source="1.4"
                         <echo message="Running tests cases for extension ${ext.name}" />
                         <junit printsummary="no" fork="yes" haltonerror="true" haltonfailure="true" dir="${ext.root}">
                             <jvmarg value="-Djava.endorsed.dirs=${endorsed}" />
-                            <classpath refid="ext.path"/>
+                            <classpath refid="ext-test-path"/>
                             <formatter type="plain" />
                             <batchtest todir="${ext.root}">
                                 <fileset dir="${ext.test.src}" />