Browse Source

更改 build.gradle 中的源码路径

master
fangdong sun 8 years ago
parent
commit
b87f8d3c12
  1. 6
      designer_base/build.gradle
  2. 6
      designer_chart/build.gradle
  3. 12
      designer_form/build.gradle

6
designer_base/build.gradle

@ -16,7 +16,7 @@ def srcDir="."
sourceSets{
main{
java{
srcDirs=["${srcDir}/designer_base/src"]
srcDirs=["${srcDir}/src"]
}
}
}
@ -32,7 +32,7 @@ compile fileTree(dir:'../../',include:'fr-*-8.0-gradle/**/*.jar')
task copyFile(type:Copy,dependsOn:compileJava){
copy{
from ("${srcDir}/designer_base/src"){
from ("${srcDir}/src"){
exclude '**/*.java'
}
into 'build/classes/main'
@ -49,7 +49,7 @@ task compressJS{
}
}
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false", , charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){
fileset (dir:"${srcDir}/designer_base/src"){
fileset (dir:"${srcDir}/src"){
include (name:'**/*.js')
}

6
designer_chart/build.gradle

@ -17,7 +17,7 @@ jar{
sourceSets{
main{
java{
srcDirs=["${srcDir}/designer_chart/src"]
srcDirs=["${srcDir}/src"]
}
}
}
@ -30,7 +30,7 @@ compile fileTree(dir:'../../',include:'fr-*-8.0-gradle/**/*.jar')
task copyFile(type:Copy,dependsOn:compileJava){
copy{
from ("${srcDir}/designer_chart/src"){
from ("${srcDir}/src"){
exclude '**/*.java'
}
into 'build/classes/main'
@ -46,7 +46,7 @@ task compressJS{
}
}
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false", , charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){
fileset (dir:"${srcDir}/designer_chart/src"){
fileset (dir:"${srcDir}/src"){
include (name:'**/*.js')
}

12
designer_form/build.gradle

@ -17,8 +17,8 @@ jar{
sourceSets{
main{
java{
srcDirs=["${srcDir}/designer/src",
"${srcDir}/designer_form/src"]
srcDirs=["${srcDir}/src",
"${srcDir}_form/src"]
}
}
}
@ -32,10 +32,10 @@ compile fileTree(dir:'../../',include:'fr-*-8.0-gradle/**/*.jar')
task copyFile(type:Copy,dependsOn:compileJava){
copy{
from ("${srcDir}/designer/src"){
from ("${srcDir}/src"){
exclude '**/*.java'
}
from ("${srcDir}/designer_form/src")
from ("${srcDir}_form/src")
into ('build/classes/main')
}
@ -50,11 +50,11 @@ task compressJS{
}
}
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false", , charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){
fileset (dir:"${srcDir}/designer/src"){
fileset (dir:"${srcDir}/src"){
include (name:'**/*.js')
}
fileset (dir:"${srcDir}/designer_form/src"){
fileset (dir:"${srcDir}_form/src"){
include (name:'**/*.js')
}

Loading…
Cancel
Save