Forum Discussion
3 Replies
- 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 "\"). - nmraoCommunity Hero@infomaven, do not face any issues while using across the plotforms, please follow as SiKing rightly pointed.
- nmraoCommunity HeroIn 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