Hi Erwan, all,
I am sorry I was bit busy last two days and made no big progress. But I came
up with a logic that can make the folder structure we want and make the test
code separate.
In this program I did not include the file changes which we need to change
to build the code and run all test successfully.

for each sub-modules in the modules,

   - application
   - specialpurposes
   - framework


Change path to the src directory

*if* previous command failed,
then continue,

*else*

Make the following folder structure in src directory (Simply we can give
this as a external resource and copy it to the src)

src
    |--main
    |    `--java
    `--test
        `--java

Copy all the files source folder(org) in to both directories.
Remove the test directories from the src/main.(git remove)
Remove all but test directories from the src/test.(git remove)
Copy all the content of the test directory to its parent folder.
Remove the test folders.(Use git remove)
Add the src/main folder to the git (git add)
Add the src/test folder to the git (git add)

*end*

The other task is to update the content of the build.xml, testdef,
servicedef, and macro.xml. This will be bit hard because we cannot have a
common logic sometimes.

Please let me know your ideas.

-- 
thanks
Ganath

Reply via email to