|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTask
com.bea.p13n.ant.taskdefs.InventoryManagment
This task takes a number of operations and parameters to help access the inventory services
servlet. This task will allow the user to control most of the life cycle for inventory services
including (upload, download, diff, commit, validate).
Usage:
1. Define the task in ant script.
Field Summary | |
static String |
COMMIT_OPERATION
|
static String |
DIFFERENCE_OPERATION
|
static String |
DOWNLOAD_OPERATION
|
static String |
DOWNLOADSIZE_OPERATION
|
static String |
PING_OPERATION
|
static String |
UPLOAD_OPERATION
|
static String |
VALIDATE_OPERATION
|
Constructor Summary | |
InventoryManagment()
Copy task constructor. |
Method Summary | |
void |
addFileset(FileSet set)
Adds a set of files to copy. |
void |
execute()
Performs remote download operation. |
String |
getDestFile()
Returns the file name to write inventory file to. |
String |
getDestURL()
Returns the URL to download inventory file from. |
boolean |
getFailOnError()
Returns the true if task should fail ant build. |
String |
getOperation()
|
boolean |
getOrphan()
|
String |
getPassword()
Returns Remote server password. |
String |
getSourceFile()
Returns the file name to read inventory file from. |
String |
getSourceURL()
Returns the URL to download inventory file from. |
String |
getUserName()
Returns the user id used to login to remote server with. |
boolean |
getVerbose()
Returns true if debugging should be on for task. |
protected void |
logMessage(String message,
Exception e)
Helper method to log error message to ant and to fail task if needed. |
void |
setDestFile(String file)
File name to write Inventory file to. |
void |
setDestURL(String url)
Stores the string version of the url for the remote server. |
void |
setFailOnError(boolean fail)
True if task should throw exception terminating ant script if error is found. |
void |
setOperation(String operation)
|
void |
setOphan(boolean orphan)
|
void |
setPassword(String password)
Password to use to login to remote server with. |
void |
setSourceFile(String file)
File name to read Inventory file from. |
void |
setSourceURL(String url)
Stores the string version of the url for the remote server. |
void |
setUserName(String user)
User to login to remote server with. |
void |
setVerbose(boolean verbose)
True if debugging for task should be turned on. |
protected void |
validateAttributes()
Ensure we have a consistent and legal set of attributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String COMMIT_OPERATION
public static final String DIFFERENCE_OPERATION
public static final String DOWNLOAD_OPERATION
public static final String DOWNLOADSIZE_OPERATION
public static final String PING_OPERATION
public static final String UPLOAD_OPERATION
public static final String VALIDATE_OPERATION
Constructor Detail |
public InventoryManagment()
Method Detail |
public void addFileset(FileSet set)
set
- a set of files to copypublic void execute() throws InventoryManagmentException
InventoryManagmentException
- if an error occurspublic String getDestFile()
public String getDestURL()
public boolean getFailOnError()
public String getOperation()
public boolean getOrphan()
public String getPassword()
public String getSourceFile()
public String getSourceURL()
public String getUserName()
public boolean getVerbose()
protected void logMessage(String message, Exception e) throws InventoryManagmentException
message
- Message to loge
- Exception causing issue.
InventoryManagmentException
public void setDestFile(String file)
file
- Name of file to write inventory file to.public void setDestURL(String url)
url
- URL to remote server.public void setFailOnError(boolean fail)
fail
- True if task should throw exception terminating ant script if
error is found.public void setOperation(String operation)
public void setOphan(boolean orphan)
public void setPassword(String password)
password
- Password to log in to remote server with.public void setSourceFile(String file)
file
- Name of file to write inventory file to.public void setSourceURL(String url)
url
- URL to remote server.public void setUserName(String user)
user
- User id to login to remote server with.public void setVerbose(boolean verbose)
verbose
- True if debugging for task should be turned on.protected void validateAttributes() throws InventoryManagmentException
InventoryManagmentException
- if an error occurs
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |