Java Doc for WsClientUpToDate.java in  » IDE-Netbeans » web.core » org » netbeans » modules » websvc » jaxrpc » ant » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » web.core » org.netbeans.modules.websvc.jaxrpc.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.websvc.jaxrpc.ant.WsClientUpToDate

WsClientUpToDate
public class WsClientUpToDate extends Task (Code)
Ant task that calculates wscompile targets and determines if the generated web service client is up to date or needs to be regenerated.
author:
   Peter Williams




Method Summary
protected  StringconvertPackage(String p)
    
public  booleaneval()
     Evaluate all targets and determine if they are newer than the appropriate source (and thus uptodate).
public  voidexecute()
    
protected  StringgetBaseName(File f)
    
protected  StringgetClientPackage(File configFile)
     Reads the config file and extracts the target package that the web service client will be generated into.
protected  ListgetClientSources(File clientDir, File wsdlFile)
     Reads the wsdl file and computes a list of expected target files for the generated web service client.
public  voidsetProperty(String property)
     The property to set if the calculated output java files and wsdl file are newer than the source wsdl file AND the target config file is newer than the source config file.
public  voidsetSourceConfig(File file)
     The wscompile config file for which we want to confirm the existence of an uptodate generated client if the property is to be set.
public  voidsetSourceWsdl(File file)
     The wsdl file for which we want to confirm the existence of an uptodate generated client if the property is to be set.
public  voidsetTargetConfig(File file)
     The target config file.
public  voidsetTargetDir(File file)
     The target directory that the source to the web service client is generated into.
public  voidsetTargetPackage(String targetPackage)
     The target package that the web service client source is generated into.
public  voidsetValue(String value)
     The value to set the named property to if the calculated output java files and wsdl file are newer than the source wsdl file AND the target config file is newer than the source config file.



Method Detail
convertPackage
protected String convertPackage(String p)(Code)
Converts a java package into a relative path



eval
public boolean eval()(Code)
Evaluate all targets and determine if they are newer than the appropriate source (and thus uptodate).



execute
public void execute() throws BuildException(Code)



getBaseName
protected String getBaseName(File f)(Code)



getClientPackage
protected String getClientPackage(File configFile)(Code)
Reads the config file and extracts the target package that the web service client will be generated into.



getClientSources
protected List getClientSources(File clientDir, File wsdlFile)(Code)
Reads the wsdl file and computes a list of expected target files for the generated web service client. Phase 1: Returns list of the service interfaces. (We can expand this as necessary to ensure correct results.)



setProperty
public void setProperty(String property)(Code)
The property to set if the calculated output java files and wsdl file are newer than the source wsdl file AND the target config file is newer than the source config file.
Parameters:
  property - the name of the property to set if Targets are up-to-date.



setSourceConfig
public void setSourceConfig(File file)(Code)
The wscompile config file for which we want to confirm the existence of an uptodate generated client if the property is to be set. If this property is not set, the config file is assumed to be of the form "[source wsdl filename]-config.xml" and present in the same directory as the source wsdl file.
Parameters:
  file - the wscompile config file we are checking against.



setSourceWsdl
public void setSourceWsdl(File file)(Code)
The wsdl file for which we want to confirm the existence of an uptodate generated client if the property is to be set.
Parameters:
  file - the wsdl file we are checking against.



setTargetConfig
public void setTargetConfig(File file)(Code)
The target config file. If this property is not specified, the target config file is assumed to be $targetdir/wsdl/$config-file-name
Parameters:
  file - the target config file. (Ant applies macro expansion to the sourcefile to create this in the client generation script.)



setTargetDir
public void setTargetDir(File file)(Code)
The target directory that the source to the web service client is generated into. Actual source files will be in the appropriate package.
Parameters:
  file - the target directory where the web service client is generated



setTargetPackage
public void setTargetPackage(String targetPackage)(Code)
The target package that the web service client source is generated into. !PW FIXME we should parse the config file and obtain this directly. package the target package that the web service client source is generated into.



setValue
public void setValue(String value)(Code)
The value to set the named property to if the calculated output java files and wsdl file are newer than the source wsdl file AND the target config file is newer than the source config file. Defaults to false.
Parameters:
  value - the value to set the property to if Targets are up-to-date



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.