|
|
@ -66,7 +66,7 @@ dependencies{ |
|
|
|
//复制非.java文件到classes文件夹下参与打包 |
|
|
|
//复制非.java文件到classes文件夹下参与打包 |
|
|
|
task copyFile(type:Copy,dependsOn:compileJava){ |
|
|
|
task copyFile(type:Copy,dependsOn:compileJava){ |
|
|
|
copy{ |
|
|
|
copy{ |
|
|
|
from ("${srcDir}/src"){ |
|
|
|
from ("${srcDir}/src/main/java"){ |
|
|
|
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html' |
|
|
|
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html' |
|
|
|
} |
|
|
|
} |
|
|
|
into 'build/classes/main' |
|
|
|
into 'build/classes/main' |
|
|
@ -83,7 +83,7 @@ task compressJS{ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false",charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){ |
|
|
|
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false",charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){ |
|
|
|
fileset (dir:"${srcDir}/src"){ |
|
|
|
fileset (dir:"${srcDir}/src/main/java"){ |
|
|
|
include (name:'**/*.js') |
|
|
|
include (name:'**/*.js') |
|
|
|
include (name:'**/*.css') |
|
|
|
include (name:'**/*.css') |
|
|
|
} |
|
|
|
} |
|
|
|