External Targets
You can use the following targets for a CCD utility in your development environment:
Target Name
Description
create.package
Creates a standard source package structure that contains all the package structures required for customization.
For example:
ant create.package -Dwt.customizationSource.dir.path=<target dir path> -Dmodule.names="configModule,managementModule" — This command creates sample configurations, generated, testModule folders at the mentioned path, along with the two module folders (configModule, managementModule).
When module names are not mentioned, the system creates only configurations, generated, and testModule folders.
If the path parameter is also not mentioned, the system considers the default location to be /opt/ptc/customization.
You can execute the create.package target multiple times. The system creates a folder only if a folder with the same name does not already exist at the specified location. The system does not overwrite or delete any existing folder. Therefore, you can use this target to create new module folders when other folders have already been created.
Certain files like deploy.xml, descriptor.xml, SchemaConfig.xml, and custom.site.xconf are generated and placed at their desired location with some default contents, such as, tags.
* 
PTC recommends that you modify the default contents.
* 
Some Windows tools, such as Windows Powershell 5.x, use backslash (\) as path separators in the zip file. However, other platforms like Linux do not recognize backslash (\) as a valid path separator within the zip file and may interpret folder paths as filenames. When the system extracts such .zip files using the .unzip application in Linux, it displays the following warning:
"warning: <zip file> appears to use backslashes as path separators. Thefolders are extracted as files. Even if the zip file is successfully extracted, the unzip command may fail and return a –1 as the return code, which can be checked using the "echo $?" command.”
Additionally, the file permissions may not be suitable for further operations with the CCD packages. If the zip file can be extracted in Linux without any warnings, it can then be processed further by the CCD package.
Example of correct zip contents is as follows:
Example of incorrect zip contents is as follows:
For more information about the deployment view, see CCD Package Structure.
compile
Compiles the code and generates the JAR(Java Archive) files. It also compiles JAVA and RBINFO files. The descriptor.xml file present in each module specifies the name of the module and the modules upon which it depends. Based on the order of dependency, the system compiles the modules. The JAR files for each module are named after the module names and are generated in the lib folder under the customization root directory.
For example, ant compile -Dtemp.dir.name=<name of temp directory>.
* 
If the temp.dir.name property is set during the compilation, you must use the same property and assign the same value during the cleanup and deployment.
compile.test
Compiles the unit tests for each module. The names of the compiled JAR files include the name of the module.
* 
If there is compile time dependency for the test module on src modules, then the sequence to run ant targets is as follows: ant compilecompile.test deploy deploy.test.
deploy
Performs the following operations:
Copies the compiled code JARs to the respective locations as per the deployment view diagram in Windchill home.
Copies all other files and UI artifacts to the respective locations as per the deployment view diagram in Windchill home. For example, the files with the extension.xconf.
Compiles the schema related artifacts.
For more information about the deployment view, see Build Package Structure.
Processes the custom schema changes configuration to reflect the updates in the Windchill install area/directory.
Adds the custom libraries to the Windchill classpath and propagates the xconf changes.
deploy.test
Copies the compiled tests and test load files in the custom lib directory in the Windchill home directory.
apply.schema
Updates the database to incorporate the new changes in the schema.
* 
If the module structure contains the SchemaConfig.xml file, it is mandatory to run the ant apply.schema command after the ant deploy target command.
wnc.restart
Restarts the method server.
load.data
Copies the loadFiles and the loadXMLFiles along with the deploy.xml file in the Windchill installation location. This target loads the files in the sequence specified in the deploy.xml file. For more information about the deployment view and the mapping inside Windchill, see Build Package Structure.
In case of an error in one of the load files, the subsequent files are skipped. The system then loads the artifacts related to LWCTypeImpExp and the preferences. The BAC zip file is then imported. For more information about importing BAC packages using the CCD utility, see Importing a BAC Package Using CCD Utility.
* 
The Directory server and Apache server must be started before executing this target.
all
Performs the following operations:
Builds and deploys customization in Windchill
Applies schema changes
Propagates xconf changes
Restarts Windchill
Loads loadXML and loadfiles
Imports the BAC package
allWithTest
Performs all the operations mentioned in the all target. Additionally, it also executes the compile.test target, deploy.test target, and loads test specific data.
Configurable Properties
Use the following configurable properties related to the CCD utility:
Property name
Default value
temp.dir.name
temp
wt.customizationSource.dir.path
Linux environment: /opt/ptc/customization
Windows: C:\ptc\customization
Was this helpful?