Browse Source
* commit 'e36b2fdbf903fc674d2281c3c46a223588b17c13': (135 commits) pmd pmd ct 无JIRA任务, 修复合并冲突 REPORT-1181 mac10.12和javafx弹出框初始化时会有大几率卡死在native方法,这里先屏蔽一下。 rt rt rt 1 REPORT-1147 脚本更新问题 test 测试 调试 调试 1 无JIRA任务, build failed REPORT-1092 两个一样的表单demo,预览的效果不一样 pmd 无JIRA任务, 国际化 pmd REPORT-1092 两个一样的表单demo,预览的效果不一样 dev上测试验收过了,同步到master ...master
superman
8 years ago
44 changed files with 1285 additions and 6244 deletions
@ -1,86 +0,0 @@
|
||||
apply plugin: "java" |
||||
tasks.withType(JavaCompile){ |
||||
options.encoding = "UTF-8" |
||||
} |
||||
|
||||
def basicDir="../../" |
||||
def libDir="${basicDir}/finereport-lib-stable" |
||||
//获取什么分支名 |
||||
FileTree files =fileTree(dir:"./",include:"build.*.gradle") |
||||
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ("\\")) |
||||
def branchName=buildDir.substring(buildDir.lastIndexOf ("\\")+1) |
||||
|
||||
task appletJar<<{ |
||||
|
||||
ant{ |
||||
mkdir(dir:"${libDir}/tmp-${branchName}") |
||||
mkdir(dir:"build/classes/") |
||||
copy(todir:"build/classes/"){ |
||||
fileset(dir:"${basicDir}/finereport-core-stable/${branchName}/build/classes/main") |
||||
|
||||
fileset(dir:"${basicDir}/finereport-chart-stable/${branchName}/build/classes/main") |
||||
|
||||
fileset(dir:"${basicDir}/finereport-report-stable/${branchName}/build/classes/main") |
||||
|
||||
fileset(dir:"${basicDir}/finereport-platform-stable/${branchName}/build/classes/main") |
||||
|
||||
fileset(dir:"${basicDir}/finereport-performance-stable/${branchName}/build/classes/main") |
||||
|
||||
} |
||||
unjar(src:"${libDir}/${branchName}/3rd.jar",dest:"${libDir}/tmp-${branchName}") |
||||
unjar(src:"${libDir}/${branchName}/servlet-api.jar",dest:"${libDir}/tmp-${branchName}") |
||||
jar(jarfile:"build/libs/fr-applet-8.0.jar"){ |
||||
fileset(dir:"build/classes"){ |
||||
exclude(name:"*.*") |
||||
exclude(name:"bin/*.*") |
||||
exclude(name:"classes/**") |
||||
exclude(name:"com/fr/schedule/**") |
||||
exclude(name:"com/fr/cell/**") |
||||
exclude(name:"com/fr/dialog/**") |
||||
exclude(name:"com/fr/view/**") |
||||
exclude(name:"com/fr/web/**") |
||||
exclude(name:"com/fr/fs/**") |
||||
exclude(name:"com/fr/design/**") |
||||
exclude(name:"com/fr/start/**") |
||||
exclude(name:"com/fr/process/**") |
||||
} |
||||
fileset(dir:"${libDir}/tmp-${branchName}"){ |
||||
include(name:"javax/mail/**") |
||||
include(name:"javax/servlet/**") |
||||
include(name:"org/freehep/**") |
||||
include(name:"com/fr/third/JAI/**") |
||||
include(name:"com/fr/third/antlr/**") |
||||
include(name:"com/fr/third/javax/**") |
||||
include(name:"com/sun/xml/**") |
||||
include(name:"javax/xml/**") |
||||
|
||||
} |
||||
fileset(dir:"build/classes"){ |
||||
include(name:"com/fr/web/*.class") |
||||
include(name:"com/fr/web/attr/*.class") |
||||
} |
||||
} |
||||
delete(dir:"${libDir}/tmp-${branchName}") |
||||
def jdk6home= "D:/FineReport/develop/java/jdk1.6u35" |
||||
def keystore="frapplet.store" |
||||
def keycert="fr.cert" |
||||
def keypassword="123456" |
||||
def keyalias="fr" |
||||
|
||||
exec(executable:"${jdk6home}/bin/keytool"){ |
||||
arg(line:"-genkey -dname "CN=FineReport L=NanJing C=China" -keystore ${keystore} -alias ${keyalias} -validity 3650 -storepass ${keypassword}") |
||||
} |
||||
exec(executable:"${jdk6home}/bin/keytool"){ |
||||
arg(line:"-export -keystore ${keystore} -alias ${keyalias} -file ${keycert} -storepass ${keypassword}") |
||||
} |
||||
|
||||
exec(executable:"${jdk6home}/bin/jarsigner"){ |
||||
arg(line:"-keystore ${keystore} -storepass ${keypassword} 'build/libs/fr-applet-8.0.jar' ${keyalias}") |
||||
} |
||||
delete(file:"${keystore}") |
||||
delete(file:"${keycert}") |
||||
delete(dir:"build/classes") |
||||
|
||||
} |
||||
|
||||
} |
@ -1,52 +1,62 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6u35"/> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.USER_LIBRARY/lib"/> |
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/base"/> |
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/designer_base"/> |
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/form"/> |
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/engine"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-stable"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-basic"/> |
||||
<classpathentry kind="lib" path="/lib/3rd.jar"/> |
||||
<classpathentry kind="lib" path="/lib/junit.jar"/> |
||||
<classpathentry kind="lib" path="/lib/ojdbc14.jar"/> |
||||
<classpathentry kind="lib" path="/lib/poi2007_fat.jar"/> |
||||
<classpathentry kind="lib" path="/lib/postgresql-8.0-311.jdbc3.jar"/> |
||||
<classpathentry kind="lib" path="/lib/servlet-api.jar"/> |
||||
<classpathentry kind="lib" path="/lib/sqljdbc.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/activation.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/commons-el.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/commons-logging.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/jasper-compiler.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/jasper-runtime.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/javax.servlet.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/jaxrpc.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/mail.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/mx4j-remote.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/mx4j-tools.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/mx4j.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/org.mortbay.jetty.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/org.mortbay.jmx.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/saaj.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/xercesImpl.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/xml-apis.jar"/> |
||||
<classpathentry kind="lib" path="/lib/jetty/xmlParserAPIs.jar"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-calculate"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-base"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-chartattr"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-chartdata"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-chartglyph"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-web"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/engine-page"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-data"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/engine-view"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/engine-write"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/engine-remote"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/designer_chart"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/designer_form"/> |
||||
<classpathentry kind="lib" path="/lib/swt.jar"/> |
||||
<classpathentry kind="lib" path="/lib/sqlite-jdbc.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/activation.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/commons-el.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/commons-logging.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/jasper-compiler.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/jasper-runtime.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/javax.servlet.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/jaxrpc.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/mail.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/mx4j.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/mx4j-remote.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/mx4j-tools.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/org.mortbay.jetty.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/org.mortbay.jmx.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/saaj.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/xercesImpl.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/xml-apis.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jetty/xmlParserAPIs.jar"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/3rd.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/ant-junit.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/cglib-nodep-2.2.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/commons-codec-1.6.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/commons-logging-1.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/easymock-3.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/hamcrest-core-1.3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jamm.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jna.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jts-1.13.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/junit.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/junit-4.12.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/mysql-connector-java-5.1.6-bin.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/objenesis-2.1.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/ojdbc14.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/olap4j-1.1.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/olap4j-xmla-1.1.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/postgresql-8.0-311.jdbc3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/quartz.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sapjco.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sapjco3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/servlet-api.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sqlite-jdbc.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sqljdbc.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swag.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swexpl.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swt.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/Sybelux.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/xercesImpl.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-chart-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-core-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-performance-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-platform-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-report-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-third-8.0.jar"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,20 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6u35"/> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/lib"/> |
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/base"/> |
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/designer_base"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-stable"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-basic"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-calculate"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-base"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-chartattr"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-chartglyph"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-web"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/chart-chartdata"/> |
||||
<classpathentry kind="lib" path="/lib/3rd.jar" sourcepath="/lookandfeel"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-data"/> |
||||
<classpathentry kind="lib" path="/lib/poi2007_fat.jar"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/3rd.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/ant-junit.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/cglib-nodep-2.2.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/commons-codec-1.6.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/commons-logging-1.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/easymock-3.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/hamcrest-core-1.3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jamm.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jna.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jts-1.13.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/junit.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/junit-4.12.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/mysql-connector-java-5.1.6-bin.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/objenesis-2.1.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/ojdbc14.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/olap4j-1.1.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/olap4j-xmla-1.1.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/postgresql-8.0-311.jdbc3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/quartz.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sapjco.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sapjco3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/servlet-api.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sqlite-jdbc.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sqljdbc.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swag.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swexpl.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swt.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/Sybelux.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/xercesImpl.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-chart-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-core-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-performance-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-platform-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-report-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-third-8.0.jar"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
|
@ -1,15 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6u35"/> |
||||
<classpathentry kind="src" path="src"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/lib"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/form"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/designer_base"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-stable"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-basic"/> |
||||
<classpathentry kind="lib" path="/lib/3rd.jar"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-calculate"/> |
||||
<classpathentry combineaccessrules="false" kind="src" path="/base-data"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-chart-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-core-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-performance-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-platform-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-report-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/fr-third-8.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/3rd.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/ant-junit.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/cglib-nodep-2.2.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/commons-codec-1.6.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/commons-logging-1.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/easymock-3.2.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/hamcrest-core-1.3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jamm.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jna.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/jts-1.13.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/junit.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/junit-4.12.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/mysql-connector-java-5.1.6-bin.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/objenesis-2.1.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/ojdbc14.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/olap4j-1.1.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/olap4j-xmla-1.1.0.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/postgresql-8.0-311.jdbc3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/quartz.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sapjco.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sapjco3.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/servlet-api.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sqlite-jdbc.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/sqljdbc.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swag.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swexpl.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/swt.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/Sybelux.jar"/> |
||||
<classpathentry kind="lib" path="D:/code/finedesignlib/xercesImpl.jar"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
||||
<classpathentry kind="output" path="bin"/> |
||||
</classpath> |
||||
|
@ -0,0 +1,93 @@
|
||||
|
||||
apply plugin: 'java' |
||||
tasks.withType(JavaCompile){ |
||||
options.encoding = 'UTF-8' |
||||
} |
||||
//指定构建的jdk版本 |
||||
sourceCompatibility=1.7 |
||||
//指定生成的jar包版本 |
||||
version='8.0' |
||||
|
||||
def srcDir="." |
||||
|
||||
|
||||
//指明生成jar包的名字 |
||||
jar{ |
||||
baseName='fr-designer-report' |
||||
} |
||||
//源码所在位置 |
||||
sourceSets{ |
||||
main{ |
||||
java{ |
||||
srcDirs=["${srcDir}/src", |
||||
"${srcDir}/../designer/src"] |
||||
} |
||||
} |
||||
} |
||||
|
||||
//获取什么分支名 |
||||
FileTree files =fileTree(dir:'./',include:'build.*.gradle') |
||||
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('\\')) |
||||
buildDir=buildDir.substring(0,buildDir.lastIndexOf ('\\')) |
||||
def branchName=buildDir.substring(buildDir.lastIndexOf ('\\')+1) |
||||
|
||||
//声明外部依赖 |
||||
dependencies{ |
||||
compile fileTree(dir:"../../../finereport-lib-stable/${branchName}",include:'**/*.jar') |
||||
compile fileTree(dir:'../../../',include:"finereport-*-stable/${branchName}/**/build/libs/*.jar") |
||||
|
||||
testCompile 'junit:junit:4.12' |
||||
} |
||||
|
||||
//指明无法编译文件所在路径 |
||||
def dataContent ={def dir -> |
||||
copySpec{ |
||||
from ("${dir}"){ |
||||
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html' |
||||
} |
||||
} |
||||
} |
||||
FileTree f1=fileTree(dir:'../../../'include:"finereport-*-stable/${branchName}/build/libs/*.jar") |
||||
f1.each{File file-> |
||||
println "----------${file.path}" |
||||
} |
||||
|
||||
FileTree f2=fileTree(dir:"../../../finereport-lib-stable/${branchName}",include:'**/*.jar') |
||||
f2.each{File file-> |
||||
println "----------${file.path}" |
||||
} |
||||
|
||||
|
||||
//将非.java文件复制到classes文件夹下 参与打包 |
||||
task copyFile(type:Copy,dependsOn:compileJava){ |
||||
copy{ |
||||
with dataContent.call("${srcDir}/src") |
||||
with dataContent.call("${srcDir}/../designer/src") |
||||
into ('build/classes/main') |
||||
} |
||||
|
||||
} |
||||
|
||||
|
||||
//压缩项目中的js文件 |
||||
task compressJS{ |
||||
ant.taskdef(name:'yuicompress',classname:'com.yahoo.platform.yui.compressor.YUICompressTask'){ |
||||
classpath { |
||||
fileset(dir:'../../../finereport-lib4build-stable',includes:'**/*.jar') |
||||
} |
||||
} |
||||
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false", charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){ |
||||
fileset (dir:"${srcDir}/src"){ |
||||
include (name:'**/*.js') |
||||
include (name:'**/*.css') |
||||
|
||||
} |
||||
fileset (dir:"${srcDir}/../designer/src"){ |
||||
include (name:'**/*.js') |
||||
include (name:'**/*.css') |
||||
} |
||||
|
||||
} |
||||
} |
||||
jar.dependsOn compressJS |
||||
|
Loading…
Reference in new issue