2
0

build.xml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  4. Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
  5. Oracle and Java are registered trademarks of Oracle and/or its affiliates.
  6. Other names may be trademarks of their respective owners.
  7. The contents of this file are subject to the terms of either the GNU General Public
  8. License Version 2 only ("GPL") or the Common Development and Distribution
  9. License("CDDL") (collectively, the "License"). You may not use this file except in
  10. compliance with the License. You can obtain a copy of the License at
  11. http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the
  12. License for the specific language governing permissions and limitations under the
  13. License. When distributing the software, include this License Header Notice in
  14. each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle
  15. designates this particular file as subject to the "Classpath" exception as provided
  16. by Oracle in the GPL Version 2 section of the License file that accompanied this code.
  17. If applicable, add the following below the License Header, with the fields enclosed
  18. by brackets [] replaced by your own identifying information:
  19. "Portions Copyrighted [year] [name of copyright owner]"
  20. Contributor(s):
  21. The Original Software is NetBeans. The Initial Developer of the Original Software
  22. is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All
  23. Rights Reserved.
  24. If you wish your version of this file to be governed by only the CDDL or only the
  25. GPL Version 2, indicate your decision by adding "[Contributor] elects to include
  26. this software in this distribution under the [CDDL or GPL Version 2] license." If
  27. you do not indicate a single choice of license, a recipient has the option to
  28. distribute your version of this file under either the CDDL, the GPL Version 2 or
  29. to extend the choice of license to its licensees as provided above. However, if you
  30. add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the
  31. option applies only if the new code is made subject to such option by the copyright
  32. holder.
  33. -->
  34. <project name="Hello_World_Installer" default="default" basedir=".">
  35. <import file="nbproject/build-impl.xml"/>
  36. <property file="build.properties"/>
  37. <target name="-post-compile" depends="-unjar-core-engine,create-jar-contents-list"/>
  38. <target name="-unjar-core-engine">
  39. <!-- Add the contents of the core engine to the engine we're building -->
  40. <unjar
  41. src="${reference.NBI_Engine.jar}"
  42. dest="${build.classes.dir}"
  43. overwrite="false"/>
  44. </target>
  45. <target name="create-jar-contents-list">
  46. <pathconvert property="build.classes.dir.normalized" dirsep="/">
  47. <path location="${build.classes.dir}"/>
  48. </pathconvert>
  49. <pathconvert pathsep="${line.separator}" property="engine.files" dirsep="/">
  50. <fileset dir="${build.classes.dir}" includes="${jar.contents.includes}"/>
  51. <mapper>
  52. <chainedmapper>
  53. <globmapper handledirsep="true" from="${build.classes.dir.normalized}/*" to="*"/>
  54. </chainedmapper>
  55. </mapper>
  56. </pathconvert>
  57. <echo file="${build.classes.dir}/${jar.contents.list}">${engine.files}</echo>
  58. </target>
  59. <target name="-post-jar">
  60. <delete dir="${dist.dir}/lib"/>
  61. </target>
  62. </project>