add: ant target for updating java libraries
using helma’s new gradlew wrapper and an extra build.gradle file
This commit is contained in:
parent
0e3bb7216c
commit
d69cf54e43
7 changed files with 33 additions and 5 deletions
|
@ -34,6 +34,7 @@
|
||||||
<echo message=" dist Generate the Antville and AntClick packages (default)"/>
|
<echo message=" dist Generate the Antville and AntClick packages (default)"/>
|
||||||
<echo message=" docs Generate the API documentation"/>
|
<echo message=" docs Generate the API documentation"/>
|
||||||
<echo message=" help Show these build instructions"/>
|
<echo message=" help Show these build instructions"/>
|
||||||
|
<echo message=" libs Update Java libraries"/>
|
||||||
<echo message=" messages Generate JavaScript message files"/>
|
<echo message=" messages Generate JavaScript message files"/>
|
||||||
<echo message=" patch Apply patch file to Antville installation"/>
|
<echo message=" patch Apply patch file to Antville installation"/>
|
||||||
<echo message=" pot Extract gettext call strings into POT file"/>
|
<echo message=" pot Extract gettext call strings into POT file"/>
|
||||||
|
@ -225,6 +226,12 @@
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="libs" depends="init">
|
||||||
|
<exec executable="${helma.dir}/gradlew">
|
||||||
|
<arg line="-b build/build.gradle"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="docs" depends="init">
|
<target name="docs" depends="init">
|
||||||
<exec dir="${build.dir}/jsdoc/toolkit" executable="${build.dir}/jsdoc/jsrunwrapper.sh">
|
<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
|
<arg line='-D="title:${docs.title}" -q -r=2 -p -t=../templates/codeview
|
||||||
|
|
24
build/build.gradle
Normal file
24
build/build.gradle
Normal file
|
@ -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 = '…';
|
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/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(app.dir + '/../lib/lesscss-1.7.0.1.1.jar');
|
||||||
|
|
||||||
app.addRepository('modules/core/Global.js');
|
app.addRepository('modules/core/Global.js');
|
||||||
|
@ -229,9 +228,7 @@ var lessParser = {
|
||||||
*/
|
*/
|
||||||
var rome = new JavaImporter(
|
var rome = new JavaImporter(
|
||||||
Packages.com.sun.syndication.io,
|
Packages.com.sun.syndication.io,
|
||||||
Packages.com.sun.syndication.feed.synd,
|
Packages.com.sun.syndication.feed.synd
|
||||||
Packages.com.sun.syndication.feed.module.itunes,
|
|
||||||
Packages.com.sun.syndication.feed.module.itunes.types
|
|
||||||
);
|
);
|
||||||
|
|
||||||
var marked = require('marked/lib/marked');
|
var marked = require('marked/lib/marked');
|
||||||
|
|
Binary file not shown.
BIN
lib/opml-0.1.jar
BIN
lib/opml-0.1.jar
Binary file not shown.
BIN
lib/rome-1.0.jar
BIN
lib/rome-1.0.jar
Binary file not shown.
Loading…
Add table
Reference in a new issue