User Tools

This is an old revision of the document!

How to duplicate a module

It is possible using the duplicate-module target of the Ant's build.xml file to duplicate an existing module located in the capsis4/src directory by giving it a new package name, a new module name and a new prefix. The user chooses the new package name and the new prefix, and the new module name is created automatically from the new package name.

Note: the new prefix can be the same as the one of the initial module.

In order to duplicate a module, you have to type the following command from the capsis4 directory:

On Linux/MacOS:

sh ant duplicate-module -Dnew.prefix=Newprefix

On Windows:

ant duplicate-module -Dnew.prefix=Newprefix

- is the package name of the initial module (module to duplicate stored in capsis4/src directory); - is the package name of the new module (module to create in capsis4/src directory); - new.prefix is the prefix of the new module (module to create).

For example, the following command (on Linux/MacOS):

sh ant duplicate-module -Dnew.prefix=Tra2

will create from the training package (that is Training module) a new module having the following characteristics: - package name: training2 - module name: Training2 (default value generated from package name) - prefix: Tra2

documentation/duplicatemodule.1524476362.txt ยท Last modified: 2018/04/23 11:39 by beudez