.

Wednesday, April 02, 2014

Script to copy the class and xml files to JDEV

Automating the copying of class and xml files from respective tops and mds folders
 
When you are required to perform OA framework extentions especially controllers, follow the below steps to set your jdeveloper
 
copy all the files from $JAVA_TOP/per/irc/*.* to c:\dump\java\top\irc\ (create this folder path)

Ex: If you want to copy IRC (irecruitment files)
copy all the files from $PER_TOP/mds/irc/*.* to c:\dump\java\mds\irc\ (create this folder path)

Make sure the same path upto irc is created in myclasses and myprojects
ex: for irc you should create two more folders in your jdev
by default oracle/apps/fnd will be there. You just need to create per and irc under oracle/apps
so the path shoudl like like
myclasses\oracle\apps\per\irc
myprojects\oracle\apps\per\irc

Use the windows xcopy  command

start-> run -> cmd and execute the commands

# in the below command /S will exclude the empty folders
 
#all classes and xml to myclasses
xcopy c:\dump\java\top\irc\*.* C:\jdeveloper\jdevhome\jdev\myclasses\oracle\apps\per\irc\ /S

#all xml to myprojects (only xml no class files)
xcopy c:\dump\java\top\irc\*.* C:\jdeveloper\jdevhome\jdev\myprojects\oracle\apps\per\irc\ /S

# all xml from mds to respective top of myprojects
xcopy c:\dump\java\mds\irc\*.xml C:\jdeveloper\jdevhome\jdev\myprojects\oracle\apps\per\irc\ /S

# all xml from mds to respective top of myclasses (mds will only have xml)
xcopy c:\dump\java\mds\irc\*.xml C:\jdeveloper\jdevhome\jdev\myclasses\oracle\apps\per\irc\ /S

 


No comments:

Post a Comment