cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1040391 - in /cxf/branches/2.3.x-fixes: ./ distribution/src/main/release/samples/common_build.xml
Date Tue, 30 Nov 2010 02:48:01 GMT
Author: dkulp
Date: Tue Nov 30 02:48:01 2010
New Revision: 1040391

URL: http://svn.apache.org/viewvc?rev=1040391&view=rev
Log:
Merged revisions 1040386 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1040386 | dkulp | 2010-11-29 21:34:10 -0500 (Mon, 29 Nov 2010) | 1 line
  
  Fixes for running samples builds from within distribution env
........

Modified:
    cxf/branches/2.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/common_build.xml

Propchange: cxf/branches/2.3.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/common_build.xml
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/common_build.xml?rev=1040391&r1=1040390&r2=1040391&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/common_build.xml (original)
+++ cxf/branches/2.3.x-fixes/distribution/src/main/release/samples/common_build.xml Tue Nov
30 02:48:01 2010
@@ -90,7 +90,15 @@
     </condition>
     <property name="cxf.home" location="../.."/>
     <property name="cxf.etc.dir" location="${cxf.home}/etc"/>
-    <property name="cxf.endorsed.dir" location="${cxf.home}/lib/endorsed"/>
+
+    <condition property="cxf.endorsed.dir" value="${cxf.home}/lib/endorsed">
+        <available file="${cxf.home}/lib/endorsed" type="dir" property=""/>
+    </condition>
+    <condition property="cxf.endorsed.flag" value="-Djava.endorsed.dirs=${cxf.endorsed.dir}">
+        <available file="${cxf.home}/lib/endorsed" type="dir" property=""/>
+    </condition>
+    <property name="cxf.endorsed.dir" location="${cxf.home}"/>
+    <property name="cxf.endorsed.flag" value="-Dnone=none"/>
 
     <path id="cxf.classpath">
         <pathelement location="${basedir}"/>
@@ -101,7 +109,7 @@
             <include name="**/*.jar"/>
         </fileset>
         <fileset dir="${cxf.endorsed.dir}">
-            <include name="**/*.jar"/>
+            <include name="*.jar"/>
         </fileset>
     </path>
     <condition property="thirdparty.classpath" value="">
@@ -120,7 +128,7 @@
         <mkdir dir="${build.src.dir}"/>
 
         <javac destdir="${build.classes.dir}" debug="true" fork="true">
-            <compilerarg line="-J-Djava.endorsed.dirs=${cxf.endorsed.dir}"/>
+            <compilerarg line="-J${cxf.endorsed.flag}"/>
             <src path="${src.dir}"/>
             <src path="${build.src.dir}"/>
             <classpath>
@@ -192,7 +200,7 @@
                 <arg value="@{param4}"/>
                 <arg value="@{param5}"/>
                 <jvmarg value="-Dcxf.home=${cxf.home}"/>
-                <jvmarg value="-Djava.endorsed.dirs=${cxf.endorsed.dir}"/>
+                <jvmarg value="${cxf.endorsed.flag}"/>
                 <jvmarg value="@{jvmarg1}"/>
                 <jvmarg value="@{jvmarg2}"/>
                 <jvmarg value="@{jvmarg3}"/>
@@ -240,9 +248,9 @@
                 <classpath>
                     <path refid="cxf.classpath" />
                 </classpath>
+                <jvmarg value="${cxf.endorsed.flag}"/>
                 <sysproperty key="java.util.logging.config.file" value="${cxf.etc.dir}/logging.properties"/>
                 <sysproperty key="exitOnFinish" value="true"/>
-                <sysproperty key="java.endorsed.dirs" value="${cxf.endorsed.dir}"/>
                 <arg line="@{servicename.arg}"/>
                 <arg line="${package.arg.@{file}}"/>
                 <arg line="${databinding.arg}"/>



Mime
View raw message