Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xmltask source="${file}" dest="${file}">
- <copy path="count(/*[local-name()='definitions']/*[local-name()='portType']/*[local-name()='operation'])" property="countNumber"/>
- </xmltask>
- <script language="beanshell">
- <classpath>
- <fileset dir="${library.dir}">
- <include name="*.jar" />
- </fileset>
- </classpath>
- <![CDATA[
- print("countNumber : " + countNumber);
- int count = new Integer(countNumber).intValue();
- String forLoopString = "";
- for (int i=0; i < count; i++)
- {
- forLoopString+=(i+1)+",";
- }
- print("forLoopString : " + forLoopString);
- project.setProperty("forLoopString",forLoopString);
- project.setUserProperty("forLoopString",forLoopString);
- ]]>
- </script>
- <for param="instance" list="${forLoopString}" >
- <sequential>
- <echo> instance : @{instance} </echo>
- </sequential>
- </for>
Add Comment
Please, Sign In to add comment