Java Doc for TargetInput.java in  » Installer » AntInstaller » org » tp23 » antinstaller » input » 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 » Installer » AntInstaller » org.tp23.antinstaller.input 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.tp23.antinstaller.input.OutputField
      org.tp23.antinstaller.input.InputField
         org.tp23.antinstaller.input.TargetInput

TargetInput
public class TargetInput extends InputField implements Target(Code)

Input type to select targets to install

If the osSpecific flag is set the OS of the current system will be appended to the name of the target actually by ant run so that different Targets can be run according to the target platform. This feature goes against the principles of building cross platform installers, but is provided so that common installer tasks such as creating icons and shortcuts can be run on Windows for all those useless users who can't run a command script ;)
Currently there are two modes strict and not strict (lax).

Strict target will return the target name plus the exact String in the System Property "os.name" this means you will have to provide targets for every possible OS version. See this page for a list of possible values There are a great many but you may not want to consider some of the options.

Lax target will return one of the following strings only

  • "[target-name]-linux" - Linux
  • "[target-name]-mac" - Mac OS and Mac OS X
  • "[target-name]-sun" - SunOS and Solaris
  • "[target-name]-win" - Windows *
  • "[target-name]-other" - any thing else

so you only have to create 5 ant targets to support all the cases.

Copyright: Copyright (c) 2004

Company: tp23


author:
   Paul Hinds
version:
   $Id: TargetInput.java,v 1.3 2006/12/07 02:42:22 teknopaul Exp $



Constructor Summary
public  TargetInput()
    

Method Summary
public  StringgetForce()
    
public static  intgetGlobalIdx()
    
public  intgetIdx()
    
public static  StringgetLaxOsSpecificSuffix()
    
public  StringgetOSSpecificTarget()
    
public  StringgetOsSpecific()
    
public static  StringgetOsSpecificSuffix()
     N.B.
public  StringgetStrict()
    
public  StringgetTarget()
    
public  StringgetTargetName()
    
public  voidsetForce(String force)
    
public  voidsetOsSpecific(String osSpecific)
    
public  voidsetStrict(String strict)
    
public  voidsetTarget(String target)
    
public  booleanvalidate(InstallerContext cxt)
    
public  booleanvalidateObject()
     Used by checkConfig to validate the configuration file.


Constructor Detail
TargetInput
public TargetInput()(Code)




Method Detail
getForce
public String getForce()(Code)



getGlobalIdx
public static int getGlobalIdx()(Code)



getIdx
public int getIdx()(Code)



getLaxOsSpecificSuffix
public static String getLaxOsSpecificSuffix()(Code)



getOSSpecificTarget
public String getOSSpecificTarget()(Code)



getOsSpecific
public String getOsSpecific()(Code)



getOsSpecificSuffix
public static String getOsSpecificSuffix()(Code)
N.B. should have added a "-" but to late to change now and not important



getStrict
public String getStrict()(Code)



getTarget
public String getTarget()(Code)



getTargetName
public String getTargetName()(Code)
Used to fetch the target value that was set in the config file



setForce
public void setForce(String force)(Code)



setOsSpecific
public void setOsSpecific(String osSpecific)(Code)



setStrict
public void setStrict(String strict)(Code)



setTarget
public void setTarget(String target)(Code)



validate
public boolean validate(InstallerContext cxt) throws ValidationException(Code)
Called to validate the user input



validateObject
public boolean validateObject()(Code)
Used by checkConfig to validate the configuration file. Not used at runtime. boolean



Fields inherited from org.tp23.antinstaller.input.InputField
protected String defaultValue(Code)(Java Doc)

Methods inherited from org.tp23.antinstaller.input.InputField
public String getDefaultValue()(Code)(Java Doc)
public String getDisplayText()(Code)(Java Doc)
public String getExplanatoryText()(Code)(Java Doc)
public String getInputResult()(Code)(Java Doc)
public String getProperty()(Code)(Java Doc)
public boolean isEditted()(Code)(Java Doc)
public void setDefaultValue(String defaultValue)(Code)(Java Doc)
public void setEditted(boolean editted)(Code)(Java Doc)
public void setInputResult(String inputResult)(Code)(Java Doc)
public void setProperty(String property)(Code)(Java Doc)
public void setResultContainer(ResultContainer resultContainer)(Code)(Java Doc)

Fields inherited from org.tp23.antinstaller.input.OutputField
protected String displayText(Code)(Java Doc)
protected String explanatoryText(Code)(Java Doc)
final protected static AILanguagePack langPack(Code)(Java Doc)
protected ResultContainer resultContainer(Code)(Java Doc)

Methods inherited from org.tp23.antinstaller.input.OutputField
public String getDisplayText()(Code)(Java Doc)
public String getExplanatoryText()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public static boolean isFalse(String value)(Code)(Java Doc)
public static boolean isTrue(String value)(Code)(Java Doc)
public static boolean optionalBoolean(String value)(Code)(Java Doc)
public static boolean requiredBoolean(String value)(Code)(Java Doc)
public void setDisplayText(String displayText)(Code)(Java Doc)
public void setExplanatoryText(String explanatoryText)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setResultContainer(ResultContainer resultContainer)(Code)(Java Doc)
abstract public boolean validate(InstallerContext cxt) throws ValidationException(Code)(Java Doc)
abstract public boolean validateObject()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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