fix #532 : download mydbflute from lastaflute

This commit is contained in:
Shinsuke Sugaya 2016-06-09 12:32:24 +09:00
parent 46ed766e12
commit 7e99071893
5 changed files with 30 additions and 3 deletions

View file

@ -73,7 +73,7 @@ Run package goal and then the release file is created in target/releases.
### Generate Source Code
$ mvn dbflute:download # (one time command)
$ mvn antrun:run # (one time command)
$ mvn dbflute:freegen
$ mvn license:format

26
dbflute.xml Normal file
View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="dbflute" basedir=".">
<property name="mydbflute.dir" value="${basedir}/mydbflute" />
<property name="target.dir" value="${basedir}/target" />
<property name="mydbflute.url" value="https://github.com/lastaflute/lastaflute-example-waterfront/archive/master.zip" />
<target name="mydbflute.check">
<condition property="mydbflute.exists">
<available file="${mydbflute.dir}" type="dir" />
</condition>
</target>
<target name="download.dbflute" depends="mydbflute.check" unless="mydbflute.exists">
<mkdir dir="${mydbflute.dir}" />
<get dest="${target.dir}/mydbflute.zip">
<url url="${mydbflute.url}" />
</get>
<unzip dest="${mydbflute.dir}" src="${target.dir}/mydbflute.zip">
<patternset>
<include name="lastaflute-example-waterfront-master/mydbflute/dbflute-1.x/**" />
</patternset>
<cutdirsmapper dirs="2" />
</unzip>
</target>
</project>

View file

@ -2,7 +2,7 @@
set ANT_OPTS=-Xmx512m
set DBFLUTE_HOME=..\mydbflute\dbflute-1.1.1
set DBFLUTE_HOME=..\mydbflute\dbflute-1.x
set MY_PROPERTIES_PATH=build.properties

View file

@ -2,6 +2,6 @@
export ANT_OPTS=-Xmx512m
export DBFLUTE_HOME=../mydbflute/dbflute-1.1.1
export DBFLUTE_HOME=../mydbflute/dbflute-1.x
export MY_PROPERTIES_PATH=build.properties

View file

@ -250,6 +250,7 @@
</dependencies>
<configuration>
<tasks>
<ant antfile="${basedir}/dbflute.xml" target="download.dbflute" />
<ant antfile="${basedir}/plugin.xml" target="install.plugins">
<property name="with.fess" value="true" />
</ant>