Permalink
Browse files

add: ant target for updating java libraries

using helma’s new gradlew wrapper and an extra build.gradle file
  • Loading branch information...
p3k committed Dec 17, 2016
1 parent 0e3bb72 commit d69cf54e43f903f6143dbe37a08e6489e93938d0
@@ -34,6 +34,7 @@
<echo message=" dist Generate the Antville and AntClick packages (default)"/>
<echo message=" docs Generate the API documentation"/>
<echo message=" help Show these build instructions"/>
<echo message=" libs Update Java libraries"/>
<echo message=" messages Generate JavaScript message files"/>
<echo message=" patch Apply patch file to Antville installation"/>
<echo message=" pot Extract gettext call strings into POT file"/>
@@ -225,6 +226,12 @@
</exec>
</target>
<target name="libs" depends="init">
<exec executable="${helma.dir}/gradlew">
<arg line="-b build/build.gradle"/>
</exec>
</target>
<target name="docs" depends="init">
<exec dir="${build.dir}/jsdoc/toolkit" executable="${build.dir}/jsdoc/jsrunwrapper.sh">
<arg line='-D="title:${docs.title}" -q -r=2 -p -t=../templates/codeview
@@ -0,0 +1,24 @@
apply plugin: 'java'
defaultTasks 'deps'
repositories {
jcenter()
mavenCentral()
}
dependencies {
runtime group: 'org.lesscss', name: 'lesscss', version: '1.7.0.1.1'
runtime group: 'rome', name: 'rome', version: '1.0'
}
task deps(type: Copy) {
from configurations.runtime
into '../lib/'
finalizedBy 'cleanup'
}
task cleanup(type: Delete) {
delete '../lib/rhino-1.7R4.jar'
delete '../lib/slf4j-api-1.7.2.jar'
delete '../lib/slf4j-simple-1.7.2.jar'
}
@@ -21,9 +21,8 @@
String.ELLIPSIS = '';
app.addRepository(app.dir + '/../lib/jdom-1.0.jar');
app.addRepository(app.dir + '/../lib/rome-1.0.jar');
app.addRepository(app.dir + '/../lib/jdom.jar');
app.addRepository(app.dir + '/../lib/itunes-0.4.jar');
app.addRepository(app.dir + '/../lib/lesscss-1.7.0.1.1.jar');
app.addRepository('modules/core/Global.js');
@@ -229,9 +228,7 @@ var lessParser = {
*/
var rome = new JavaImporter(
Packages.com.sun.syndication.io,
Packages.com.sun.syndication.feed.synd,
Packages.com.sun.syndication.feed.module.itunes,
Packages.com.sun.syndication.feed.module.itunes.types
Packages.com.sun.syndication.feed.synd
);
var marked = require('marked/lib/marked');
BIN -30.1 KB lib/itunes-0.4.jar
Binary file not shown.
File renamed without changes.
BIN -23.5 KB lib/opml-0.1.jar
Binary file not shown.
BIN +12 Bytes (100%) lib/rome-1.0.jar
Binary file not shown.

0 comments on commit d69cf54

Please sign in to comment.