diff --git a/README.md b/README.md index a0315555f3b199d3940260a4be9e9323013acee0..cbfdbe76f163b64a32f5d08e6c6f2789f89b76e6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/dbflute.xml b/dbflute.xml new file mode 100644 index 0000000000000000000000000000000000000000..8b9ff4e334f962f97f1b57d13ed1f45a0624b23c --- /dev/null +++ b/dbflute.xml @@ -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> diff --git a/dbflute_fess/_project.bat b/dbflute_fess/_project.bat index e1448f36e18d590cd46b6613d51898f7a0cb490b..ee6fbf769a20383f3106af3ecc639db018ce01b0 100644 --- a/dbflute_fess/_project.bat +++ b/dbflute_fess/_project.bat @@ -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 diff --git a/dbflute_fess/_project.sh b/dbflute_fess/_project.sh index 579352aa48b8972a7ee46f764781da5cfa23197c..3be66fa8104833d3c50f5e7daaa8df910781789e 100644 --- a/dbflute_fess/_project.sh +++ b/dbflute_fess/_project.sh @@ -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 diff --git a/pom.xml b/pom.xml index 054f77ab228ef719382916e4e561f58f4f418da3..d6e160c9c2b387b8d6842a88d95c4002d05cd3ef 100644 --- a/pom.xml +++ b/pom.xml @@ -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>