Extracting the Deployment Unit

Use the AFX_EXTRACTOR utility to extract the deployment unit from the model file.

Syntax

java -classpath "AFX_EXTRACTOR_PATH;LOG4J_PATH" com.sybase.uep.tooling.utilities.AFXExtractor "MODEL_FILE_PATH" "DIRECTORY_STORED_AFX"

Parameters

  • AFX_EXTRACTOR_PATH – represents the path of the JAR file including the AFXExtractor class, which is installed in the <UnwiredPlatform_InstallDir>\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins directory.
  • LOG4J_PATH – represents the path of the log4j JAR file, which is installed in the <UnwiredPlatform_InstallDir>\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.tooling.api_<version number>\lib directory.
  • MODEL_FILE_PATH – represents the path of the model file.
  • DIRECTORY_STORED_AFX – represents the directory path which contains the deployment unit file.

Examples

  • java -classpath "C:\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.tooling_utilities_1.7.0.201104081506.jar;C:\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.tooling.api_1.5.5.201012021142\lib\log4j-1.2.15.jar " com.sybase.uep.tooling.utilities.AFXExtractor "c:\sup.model" "c:\afx\result"

    Errors are logged to the afx_extractor.log file located in the directory from which you run the AFX_EXTRACTOR utility. For example, if you run the utility from the default command-line directory, C:\Documents and Settings\<USERNAME>, then the log file is C:\Documents and Settings\<USERNAME>\afx_extractor.log.