< prev index next >

nashorn/make/build.xml

Print this page


   1 <?xml version="1.0" encoding="UTF-8"?>
   2 
   3 <!--
   4  Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
   5  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6 
   7  This code is free software; you can redistribute it and/or modify it
   8  under the terms of the GNU General Public License version 2 only, as
   9  published by the Free Software Foundation.
  10 
  11  This code is distributed in the hope that it will be useful, but WITHOUT
  12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  version 2 for more details (a copy is included in the LICENSE file that
  15  accompanied this code).
  16 
  17  You should have received a copy of the GNU General Public License version
  18  2 along with this work; if not, write to the Free Software Foundation,
  19  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 
  21  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  or visit www.oracle.com if you need additional information or have any
  23  questions.
  24 -->


 139       <compilerarg value="-Xlint:all"/>
 140       <compilerarg value="-XDignore.symbol.file"/>
 141       <compilerarg value="-Xdiags:verbose"/>
 142       <compilerarg value="-parameters"/>
 143     </javac>
 144     <copy todir="${build.classes.dir}/META-INF/services">
 145        <fileset dir="${meta.inf.dir}/services/"/>
 146     </copy>
 147      <copy todir="${build.classes.dir}/jdk/nashorn/api/scripting/resources">
 148        <fileset dir="${src.dir}/jdk/nashorn/api/scripting/resources/"/>
 149     </copy>
 150     <copy todir="${build.classes.dir}/jdk/nashorn/internal/runtime/resources">
 151        <fileset dir="${src.dir}/jdk/nashorn/internal/runtime/resources/"/>
 152     </copy>
 153     <copy todir="${build.classes.dir}/jdk/nashorn/tools/resources">
 154        <fileset dir="${src.dir}/jdk/nashorn/tools/resources/"/>
 155     </copy>
 156     <copy file="${src.dir}/jdk/internal/dynalink/support/messages.properties" todir="${build.classes.dir}/jdk/internal/dynalink/support"/>
 157     <copy file="${src.dir}/jdk/nashorn/internal/codegen/anchor.properties" todir="${build.classes.dir}/jdk/nashorn/internal/codegen"/>
 158 
 159     <echo message="full=${nashorn.fullversion}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties"/>
 160     <echo file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true">${line.separator}</echo>
 161     <echo message="release=${nashorn.version}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true"/>
 162   </target>
 163 
 164   <target name="jar" depends="compile, run-nasgen, generate-cc-template" description="Creates nashorn.jar" unless="compile.suppress.jar">
 165     <jar jarfile="${dist.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge">
 166       <fileset dir="${build.classes.dir}"/>
 167       <manifest>
 168         <attribute name="Archiver-Version" value="n/a"/>
 169         <attribute name="Build-Jdk" value="${java.runtime.version}"/>
 170         <attribute name="Built-By" value="n/a"/>
 171         <attribute name="Created-By" value="Ant jar task"/>
 172         <section name="jdk/nashorn/">
 173           <attribute name="Implementation-Title" value="${nashorn.product.name}"/>
 174           <attribute name="Implementation-Version" value="${nashorn.version}"/>
 175         </section>
 176       </manifest>
 177     </jar>
 178   </target>
 179 
 180   <target name="use-promoted-nashorn" depends="init">
 181     <delete file="${dist.dir}/nashorn.jar"/>


   1 <?xml version="1.0" encoding="UTF-8"?>
   2 
   3 <!--
   4  Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
   5  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6 
   7  This code is free software; you can redistribute it and/or modify it
   8  under the terms of the GNU General Public License version 2 only, as
   9  published by the Free Software Foundation.
  10 
  11  This code is distributed in the hope that it will be useful, but WITHOUT
  12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  version 2 for more details (a copy is included in the LICENSE file that
  15  accompanied this code).
  16 
  17  You should have received a copy of the GNU General Public License version
  18  2 along with this work; if not, write to the Free Software Foundation,
  19  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 
  21  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  or visit www.oracle.com if you need additional information or have any
  23  questions.
  24 -->


 139       <compilerarg value="-Xlint:all"/>
 140       <compilerarg value="-XDignore.symbol.file"/>
 141       <compilerarg value="-Xdiags:verbose"/>
 142       <compilerarg value="-parameters"/>
 143     </javac>
 144     <copy todir="${build.classes.dir}/META-INF/services">
 145        <fileset dir="${meta.inf.dir}/services/"/>
 146     </copy>
 147      <copy todir="${build.classes.dir}/jdk/nashorn/api/scripting/resources">
 148        <fileset dir="${src.dir}/jdk/nashorn/api/scripting/resources/"/>
 149     </copy>
 150     <copy todir="${build.classes.dir}/jdk/nashorn/internal/runtime/resources">
 151        <fileset dir="${src.dir}/jdk/nashorn/internal/runtime/resources/"/>
 152     </copy>
 153     <copy todir="${build.classes.dir}/jdk/nashorn/tools/resources">
 154        <fileset dir="${src.dir}/jdk/nashorn/tools/resources/"/>
 155     </copy>
 156     <copy file="${src.dir}/jdk/internal/dynalink/support/messages.properties" todir="${build.classes.dir}/jdk/internal/dynalink/support"/>
 157     <copy file="${src.dir}/jdk/nashorn/internal/codegen/anchor.properties" todir="${build.classes.dir}/jdk/nashorn/internal/codegen"/>
 158 
 159     <echo message="version_string=${nashorn.fullversion}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties"/>
 160     <echo file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true">${line.separator}</echo>
 161     <echo message="version_short=${nashorn.version}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true"/>
 162   </target>
 163 
 164   <target name="jar" depends="compile, run-nasgen, generate-cc-template" description="Creates nashorn.jar" unless="compile.suppress.jar">
 165     <jar jarfile="${dist.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge">
 166       <fileset dir="${build.classes.dir}"/>
 167       <manifest>
 168         <attribute name="Archiver-Version" value="n/a"/>
 169         <attribute name="Build-Jdk" value="${java.runtime.version}"/>
 170         <attribute name="Built-By" value="n/a"/>
 171         <attribute name="Created-By" value="Ant jar task"/>
 172         <section name="jdk/nashorn/">
 173           <attribute name="Implementation-Title" value="${nashorn.product.name}"/>
 174           <attribute name="Implementation-Version" value="${nashorn.version}"/>
 175         </section>
 176       </manifest>
 177     </jar>
 178   </target>
 179 
 180   <target name="use-promoted-nashorn" depends="init">
 181     <delete file="${dist.dir}/nashorn.jar"/>


< prev index next >