Changeset 146
- Timestamp:
- 2008-04-03 09:15:05 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/genscript-plugin/src/main/groovy/GenerateScriptMojo.groovy
r143 r146 76 76 def classPath = "" 77 77 if (isRelease) { 78 for (entry in artifacts) { 79 classPath += "\$M2_REPO" + "/" + new File(localRepository.pathOf(entry)).getPath() + ":" 80 } 78 artifacts.eachWithIndex( 79 { entry, i -> 80 classPath += "\$M2_REPO" + "/" + new File(localRepository.pathOf(entry)).getPath() 81 classPath += entry.getFile().getPath(); 82 if (i < artifacts.size() - 1) 83 classPath += ":\\\n" 84 } 85 ); 81 86 } else { 82 for (entry in artifacts) { 83 classPath += entry.getFile().getPath() + ":" 84 } 87 artifacts.eachWithIndex( 88 { entry, i -> 89 classPath += entry.getFile().getPath(); 90 if (i < artifacts.size() - 1) 91 classPath += ":\\\n" 92 } 93 ); 85 94 } 86 95 … … 97 106 M2_REPO=${localRepositoryLocation} 98 107 99 CLASSPATH=${classPath}:\$KAURI_CLI_CLASSPATH 108 CLASSPATH=\\ 109 ${classPath}:\\ 110 \$KAURI_CLI_CLASSPATH 100 111 101 112 export CLASSPATH
Note: See TracChangeset
for help on using the changeset viewer.