< prev index next >

apps/samples/Ensemble8/build.xml

Print this page
rev 10395 : 8173080: Add licenses for non-distributed third-party source code in repo
Reviewed-by:

@@ -77,11 +77,11 @@
             <isset property="JFX_CORE_ONLY"/>
         </condition>
     </target>
 
     <!-- COPY SAMPLE SRC TO BUILD DIR -->
-    <target name="-pre-compile" depends="-copy-cssref">
+    <target name="-pre-compile" depends="-copy-cssref,-copy-legal">
         <echo>Copying all sample source files to build dir</echo>
          <copy todir="${build.classes.dir}">
             <fileset dir="${basedir}/src/samples/java">
                 <include name="**/samples/**/*.java"/>
                 <include name="**/*.js"/> <!-- include javascript files -->

@@ -109,10 +109,17 @@
                 match="http://download.java.net/java/jdk9/docs/legal/cpyr.html"
                 replace="http://www.oracle.com/technetwork/java/javase/terms/license/oraclebsd-1603217.txt"
                 byline="true"/>
     </target>
 
+    <target name="-copy-legal">
+        <mkdir dir="${build.legal.dir}"/>
+        <copy todir="${build.legal.dir}">
+                <fileset dir="${legal.dir}"/>
+        </copy>
+    </target>
+
     <!-- DON'T INCLUDE COMPILE TIME CODE IN APP JAR -->
     <target name="-pre-jar">
         <delete dir="${build.classes.dir}/ensemble/compiletime"/>
     </target>
     
< prev index next >