Forum Discussion
ITAbteilung
15 years agoContributor
Hi,
packing works with the new nightly build. The content of the specified scriptfolder is copied correctly into the "WEB-INF/scripts" folder. Thanks. But still I can't figure out how use the groovy code inside the scriptfolder. Starting the Mockup from SoapUI it works like that: when my scriptfolder is "[somepath]/scripts", and my groovy file lies at "[somepath]/scripts/tools/FileHandler.groovy" and contains the following code
Now I expect the same behavior when I deploy the Mockup with the wargenerator.sh and the paramter
Regards,
Pat
packing works with the new nightly build. The content of the specified scriptfolder is copied correctly into the "WEB-INF/scripts" folder. Thanks. But still I can't figure out how use the groovy code inside the scriptfolder. Starting the Mockup from SoapUI it works like that: when my scriptfolder is "[somepath]/scripts", and my groovy file lies at "[somepath]/scripts/tools/FileHandler.groovy" and contains the following code
package toolsthen I can instantiate a FileHandler Object by:
class FileHandler
{
public static void createDir( String dirname){
//code to create a directory
}
}
tools.FileHandler fh = new tools.FileHandler();or execute the static method by
tools.FileHandler.createDir( "newdir");
Now I expect the same behavior when I deploy the Mockup with the wargenerator.sh and the paramter
-c [somepath]/scriptsBut using the code doesn't work in that way.
Regards,
Pat