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.

+

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 ​in order to create a new module having ​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:

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

Line 14:

Line 12:

where:\\

where:\\

-

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

+

- //packagename// is the package name of the initial module (module to duplicate stored in //​capsis4/​src//​ directory);​\\

-

- //new.package.name// and //new.prefix// are respectively the package name and the prefix of the new module (module to create in //​capsis4/​src//​ directory).

+

- //newpackagename// and //Newprefix// are respectively the package name and the prefix of the new module (module to create in //​capsis4/​src//​ directory).

Technical note: the creation of the new module requires to give new names to files (//.java// source files and //​.properties//​ translation files mainly) and classes contained in source files from the initial module. ​Moreover, local variables whose name begins with the prefix ​in the initial module ​(with a lowercase first letter) are also renamed. Therefore, with the previous example, if the //​TraModel//​ class (stored in //​TraModel.java//​) contains the following instruction:​\\

+

Notes:\\

+

- The creation of the new module requires to give new names to files (//.java// source files and //​.properties//​ translation files mainly) and classes contained in source files from the initial module.\\

+

- Local variables ​of the initial module ​whose name begins with the prefix (with a lowercase first letter) are also renamed.\\

+

Therefore, with the previous example, if the //​TraModel//​ class (stored in //​TraModel.java//​) contains the following instruction:​\\