Skip to content

Commit

Permalink
Creates a POM if bundling as JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
botic committed Feb 20, 2017
1 parent 312ce53 commit 3a3a2cb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ docs/modules
docs/java
bin/ringo-doc.cmd
bin/ringo-doc
/pom.xml
22 changes: 21 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
<property name="project" value="ringojs"/>
<property name="version" value="1.1.0"/>

<!-- pom.xml generation -->
<property name="ivy.pom.name" value="RingoJS" />
<property name="ivy.pom.description" value="RingoJS is a JavaScript platform built on the JVM and optimized for server-side applications." />
<property name="ivy.pom.url" value="https://ringojs.org/" />
<property name="ivy.pom.header" value="" />
<property name="ivy.pom.license" value="&lt;!-- RingoJS is licensed under Apache License Version 2.0 --&gt;" />
<property name="ivy.pom.groupId" value="org.ringojs" />
<property name="ivy.pom.artifactId" value="ringojs" />
<property name="ivy.pom.version" value="${version}" />

<!-- javac default targets for cross compilation on newer JDKs -->
<property name="ant.build.javac.source" value="7"/>
<property name="ant.build.javac.target" value="7"/>
Expand Down Expand Up @@ -216,8 +226,9 @@
<!-- =================================================================== -->
<!-- Creates a jar file in the lib-directory -->
<!-- =================================================================== -->
<target name="jar" depends="compile">
<target name="jar" depends="pom, compile">
<jar jarfile="${ringo-core.jar}">
<fileset dir="${home}" includes="pom.xml"/>
<fileset dir="${classes}"/>
<fileset dir="${src}" excludes="**/*.java,**/package.html"/>
</jar>
Expand Down Expand Up @@ -279,6 +290,15 @@

</target>

<!-- =================================================================== -->
<!-- Creates a POM -->
<!-- =================================================================== -->
<target name="pom" depends="init">
<ivy:makepom ivyfile="ivy.xml" pomfile="pom.xml">
<mapping conf="default" scope="compile"/>
</ivy:makepom>
</target>

<!-- =================================================================== -->
<!-- Create a debian package -->
<!-- =================================================================== -->
Expand Down

0 comments on commit 3a3a2cb

Please sign in to comment.