@@ -208,11 +208,7 @@ def binaryRelease(taskName, jarName, mainClass) {
208208 }
209209 }
210210}
211- startScripts {
212- doLast {
213- delete unixScript
214- }
215- }
211+
216212def createScript (project , mainClass , name ) {
217213 project. tasks. create(name : name, type : CreateStartScripts ) {
218214 unixStartScriptGenerator. template = resources. text. fromFile(' ../gradle/unixStartScript.txt' )
@@ -221,14 +217,14 @@ def createScript(project, mainClass, name) {
221217 mainClassName = mainClass
222218 applicationName = name
223219 classpath = project. tasks[JavaPlugin . JAR_TASK_NAME ]. outputs. files + project. configurations. runtime
224- defaultJvmOpts = [' -XX:+UseConcMarkSweepGC' ,
225- ' -XX:+PrintGCDetails' ,
226- ' -Xloggc:./gc.log' ,
227- ' -XX:+PrintGCDateStamps' ,
228- ' -XX:+CMSParallelRemarkEnabled' ,
229- ' -XX:ReservedCodeCacheSize=256m' ,
230- ' -XX:+CMSScavengeBeforeRemark'
231- ]
220+ // defaultJvmOpts = ['-XX:+UseConcMarkSweepGC',
221+ // '-XX:+PrintGCDetails',
222+ // '-Xloggc:./gc.log',
223+ // '-XX:+PrintGCDateStamps',
224+ // '-XX:+CMSParallelRemarkEnabled',
225+ // '-XX:ReservedCodeCacheSize=256m',
226+ // '-XX:+CMSScavengeBeforeRemark'
227+ // ]
232228 }
233229 project. tasks[name]. dependsOn(project. jar)
234230 project. applicationDistribution. with {
@@ -238,7 +234,9 @@ def createScript(project, mainClass, name) {
238234 }
239235 }
240236}
241-
237+ applicationDistribution. from(" ../gradle/java-tron.vmoptions" ) {
238+ into " bin"
239+ }
242240// distZip {
243241// doLast {
244242// file("$destinationDir/$archiveName").renameTo("$destinationDir/"+'java-tron-'+version+'-bin.zip')
0 commit comments