Forum Discussion
- SiKingCommunity ExpertYes. I create my projects on Windows and run them on Jenkins/Maven/Linux without problems.
Make sure that any resources you are specifying use relative paths and UNIX denominators ("/" instead of "\"). - nmraoChampion Level 3@infomaven, do not face any issues while using across the plotforms, please follow as SiKing rightly pointed.
- nmraoChampion Level 3In groovy scripts, when required to use separator
def SEP=java.io.File.separator
And some times need to call external java programs where it can have classpath with multiple jar files the following piece of groovy can be useddef colon = null
if (System.properties['os.name'].toLowerCase().contains('windows')) {
colon = ';'
} else {
colon = ':'
}
for eg, there are two libraries needs to be includeddef USER_CLASSPATH=<somepath>+SEP+library1.jar+colon+<somepath>+SEP+library2.jar
Related Content
- 4 years ago
- 4 years ago
Recent Discussions
- 15 years ago