Skip to content
Snippets Groups Projects
Commit 7e990718 authored by Shinsuke Sugaya's avatar Shinsuke Sugaya
Browse files

fix #532 : download mydbflute from lastaflute

parent 46ed766e
No related branches found
No related tags found
Loading
......@@ -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
......
<?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>
......@@ -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
......
......@@ -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
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment