Guest User

Untitled

a guest
Oct 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <xmltask source="${file}" dest="${file}">
  2. <copy path="count(/*[local-name()='definitions']/*[local-name()='portType']/*[local-name()='operation'])" property="countNumber"/>
  3. </xmltask>
  4.  
  5. <script language="beanshell">
  6. <classpath>
  7. <fileset dir="${library.dir}">
  8. <include name="*.jar" />
  9. </fileset>
  10. </classpath>
  11. <![CDATA[
  12.  
  13. print("countNumber : " + countNumber);
  14.  
  15. int count = new Integer(countNumber).intValue();
  16. String forLoopString = "";
  17. for (int i=0; i < count; i++)
  18. {
  19. forLoopString+=(i+1)+",";
  20. }
  21.  
  22. print("forLoopString : " + forLoopString);
  23.  
  24. project.setProperty("forLoopString",forLoopString);
  25. project.setUserProperty("forLoopString",forLoopString);
  26.  
  27. ]]>
  28. </script>
  29.  
  30. <for param="instance" list="${forLoopString}" >
  31. <sequential>
  32. <echo> instance : @{instance} </echo>
  33. </sequential>
  34. </for>
Add Comment
Please, Sign In to add comment