There was recently a good discussion on the Oracle Forums about building components (https://community.oracle.com/message/12917711). There was some discussion about different methods people use, but there was an idea to get together to build something useful for the community. I wanted to provide my method and utility.
I have an ant build script that serves two general purposes: create new components and build existing components. Let's first go over the parts and dependencies of the utility.
There are a few pieces expected by the utility:
- build.xml
- a "Template Component"
- fart.exe
Yes, fart.exe.
Let's go ahead and get that one out of the way :)
FART stands for "Find And Replace Text command line utility". The ant script uses this to rename the files and directories inside the template component to whatever actual component name you're cloning.
You need to install that utility (http://sourceforge.net/projects/fart-it/) and update the build.xml to the correct path.
Next is the "Template Component". In order to create components for you to work with, there needs to be a template. this is the core structure of a component with the (more or less) universal defaults in place. This will be your starting point when you're creating a new component. pretty nice to be able to not have to remember the structure, bits, pieces, etc each time you create a new component, in my opinion.
Notice that the Template Component is under a directory called "Components", this will be the parent component for all of your Components for the project. you can separate comnponents into different directories per client or project or whatever, but you'll need to duplicate the build.xml as well. the build.xml and Components directory must be at the same level. Peak at the properties structure in the build.xml for more info.
Finally, the build.xml.
The build.xml has two targets: 'createnew' and 'all'.
createnew will generate a new component structure for the component name provided. It looks like this when using eclipse to execute:
NewComponent is the name of your new component to be created.
The default target is 'all', so in can be implied. that will look like this, if your component is named "SenaSampleManageMetadata"
The default target is 'all', so in can be implied. that will look like this, if your component is named "SenaSampleManageMetadata"
The 'all' target does a few things:
Note that the build number is managed by this file: ${componentName}.build.properties. The build automatically increments the build number by one each time the build is executed. the date is also automatically updated.
The target also cleans the build directory, recreates it, the zips up the component (excluding svn assets).
NOTE: the compilation of the class files is not done by the script since this was originally used with eclipse. I used eclipse's auto-build to make sure the class files were always there when needed. This required modifying the build directory as follows:
Note that the expected structure is as follows:
java source:
Components/<Component Name>/component/<Component Name>/src
java classes:
Components/<Component Name>/component/<Component Name>/classes
The build.xml could easily be modified to include a subtask containing a java compilation job, if needed.
I have not used this with jdeveloper, but I expect it could be adapted to jdeveloper as well. I personally still use eclipse for building components, so I have not taken the time to attempt to adapt to jdev.
here is a link to the public repo housing this code:
https://bitbucket.org/Rsulliv1/webcenter-utilities
Let me know what everyone thinks!
-ryan
Note that the build number is managed by this file: ${componentName}.build.properties. The build automatically increments the build number by one each time the build is executed. the date is also automatically updated.
The target also cleans the build directory, recreates it, the zips up the component (excluding svn assets).
NOTE: the compilation of the class files is not done by the script since this was originally used with eclipse. I used eclipse's auto-build to make sure the class files were always there when needed. This required modifying the build directory as follows:
Note that the expected structure is as follows:
java source:
Components/<Component Name>/component/<Component Name>/src
java classes:
Components/<Component Name>/component/<Component Name>/classes
The build.xml could easily be modified to include a subtask containing a java compilation job, if needed.
I have not used this with jdeveloper, but I expect it could be adapted to jdeveloper as well. I personally still use eclipse for building components, so I have not taken the time to attempt to adapt to jdev.
here is a link to the public repo housing this code:
https://bitbucket.org/Rsulliv1/webcenter-utilities
Let me know what everyone thinks!
-ryan
After the huge success of Mi5, Xiaomi is ready to launch the next generation of its flagship device the Mi 6 sometime soon. It will have a more powerful processor and a better back camera with dual tone LED flash. To know more about the latest flagship launch just have a look at Mi6 smartphone
ReplyDeleteSamsung Galaxy S9 is unbreakable. To know more features visit the site
ReplyDeleteTech
Nice post - Thanks for sharing this kind of post with us. really very great stuff, keep posting...
ReplyDeleteiPhone 9 Look
ReplyDeleteGaming
GTA 6 Release Date
It's not simple to stay on top of changes to cell phones. With any luck, you have gained some insights that will facilitate a better cell phone experience. Phones may be complex, but if you know what you're doing you'll be able to get the most out of your phone.
ReplyDeletebest headphones for workouts
ReplyDeletebest 7.1headphones under $100
Thank you for sharing the information. Glad to find it here.
ReplyDeleteinstagram technology
Thank you for sharing this very nice post awesome keep sharing.
ReplyDeleteclick here
Blogs for escorts or call girls in Bangalore
ReplyDeleteEscort service in Bangalore
Bangalore call girls
Call girls in Bangalore
Escorts in Bangalore
Female escorts in Bangalore
Celebrity escorts in Bangalore
Russian escorts in Bangalore
Bangalore escorts
Housewife escorts in Bangalore
Very nice post I really enjoyed it...You can also visit my website for
ReplyDeleteEscorts in Bangalore
Escorts in Kolkata
Escorts in Lucknow
Escorts in Jammu
Escorts in Chandigarh
Escorts in Guwahati
Escorts in Ranchi
Escorts in Gurgaon
Escorts in Chandigarh
Escorts in Pune
Blogs for escorts or call girls in Bangalore
ReplyDeleteEscort service in Bangalore
Bangalore call girls
Call girls in Bangalore
Escorts in Bangalore
Female escorts in Bangalore
Bangalore escorts
I liked your post .so,I visite my links.
ReplyDeletecall girls in kolkata
kolkata escorts
russian escorts in kolkata
kolkata call girls
call girls kolkata
escorts in kolkata
kolkata escort
housewife escorts in kolkata
college call girls in kolkata
call girls in park street
escorts in park street
Faridabad call girls
ReplyDeleteFaridabad call girl
Faridabad escorts
Faridabad escort
Escort services in Faridabad
Escort services in Faridabad
Call girls in Faridabad
Call girl in Faridabad
Faridabad escort services
Faridabad escort service
Escorts in Faridabad
Escorts in Faridabad
Escorts in Faridabad
Escorts in Faridabad
Escort in Faridabad
Escort in Faridabad
Escort in Faridabad
Escort in Faridabad
Escort services in Faridabad
Escort services in Faridabad
Escort services in Faridabad
Escort services in Faridabad
Escort service in Faridabad
Escort service in Faridabad
Escort service in Faridabad
Escort service in Faridabad
Faridabad call girls
ReplyDeleteFaridabad call girl
Faridabad escorts
Faridabad escort
Escort services in Faridabad
Escort services in Faridabad
Call girls in Faridabad
Call girl in Faridabad
Faridabad escort services
Faridabad escort service
Escorts in Faridabad
Escorts in Faridabad
Escorts in Faridabad
Escorts in Faridabad
Escort in Faridabad
Escort in Faridabad
Escort in Faridabad
Escort in Faridabad
Escort services in Faridabad
Escort services in Faridabad
Escort services in Faridabad
Escort services in Faridabad
Escort service in Faridabad
Escort service in Faridabad
Escort service in Faridabad
Escort service in Faridabad
Very nice post I really enjoyed it...You can also visit my website for
ReplyDeleteEscort Service in Jaipur
Call Girl in Jaipur
Jaipur Call Girls
Jaipur Escorts
Escort Services in Jaipur
Escorts in Jaipur
Call Girls in Jaipur
Celebrity Escorts in Jaipur
Air Hostess Escorts in Jaipur
Call Girls in Jaipur
Call Girl in Jaipur
Escorts in Jaipur
Escort in Jaipur
Jaipur Escort Service
Jaipur Escort Servives
Jaipur Escorts Service
Jaipur Escorts Servives
Jaipur Call Girls
Jaipur Call Girl
Escort Service in Jaipur
Escorts Service in Jaipur
Escort Services in Jaipur
Jaipur Escort
Jaipur Escorts
Very nice post I really enjoyed it...You can also visit my website for
ReplyDeleteCall Girls in Jaipur
Jaipur Call Girls
Escorts in Jaipur
Jaipur Escorts
Escort Service in Jaipur
Independent Escorts in Jaipur
Escort Services in Jaipur
College Call Girls in Jaipur
Call Girls in Jaipur
Call Girl in Jaipur
Escorts in Jaipur
Escort in Jaipur
Jaipur Escort Service
Jaipur Escort Servives
Jaipur Escorts Service
Jaipur Escorts Servives
Jaipur Call Girls
Jaipur Call Girl
Escort Service in Jaipur
Escorts Service in Jaipur
Escort Services in Jaipur
Jaipur Escort
Jaipur Escorts
Call girls in Gurgaon
ReplyDeleteCall girls in Lucknow
Call girls in Guwahati
Call girl in Gurgaon
Call girl in Lucknow
Call girl in Guwahati
Gurgaon call girls
Lucknow call girls
Guwahati call girls
Bangalore call girls
Gurgaon call girl
Lucknow call girl
Guwahati call girl
Bangalore call girl
Escorts in Gurgaon
Escorts in Lucknow
Escorts in Guwahati
Escorts in Bangalore
Escort services in Gurgaon
Escort services in Lucknow
Escort services in Guwahati
Escort services in Bangalore
Escort service in Gurgaon
Escort service in Lucknow
Escort service in Guwahati
Escort service in Bangalore
Gurgaon escorts
Lucknow escorts
Guwahati escorts
Bangalore escorts
Gurgaon escort
Lucknow escort
Guwahati escort
Bangalore escort
kolkata call girls | call girls kolkata | call girl in gurgaon | gurgaon call girls | Call girl in Noida | call girls in puri | puri call girls | call girls in bhubaneswar | bhubaneswar call girls | call girls in cuttack | cuttack call girls | Call girls in Noida | Call girl in Noida | Noida Call girls | Noida Call girl | call girls in kolkata call girls in puri | puri call girls | puri call girl | call girls in bhubaneswar | bhubaneswar call girls | bhubaneswar call girl | call girls in cuttack | cuttack call girls | cuttack call girl
ReplyDeleteEscorts in Kolkata | Escorts in Gurgaon | Escorts in Noida | Escorts in Puri | Escort services in Kolkata | Escort services in Gurgaon | Escort services in Noida | Escort services in Puri | Escorts in bhubaneswar | Escorts in cuttack | Escort services in bhubaneswar | Escort services in cuttack
ReplyDeleteIf you are in Jaipur and need beautiful Jaipur Call Girl or white skin Jaipur Call Girls then you can simply book call girls in Jaipur from one of the best escort agency named Jaipur Call Girls. It is No.1 premier escort agency and provide both incall or outcall facility to clients.Please click on the following link to check the official websites Jaipur Call Girl
ReplyDeleteEscorts in Faridabad
ReplyDeleteEscort services in Faridabad
Escort services in Faridabad
Escorts in Faridabad
Call Girls in Faridabad
Thank you very much for sharing this very useful information, I am very happy to have found the information I was looking for. Once again, thank you so much.
ReplyDeleteobat herbal ampuh untuk mengatasi cacar air
cara pemesanan qnc jelly gamat secara online
cara menghilangkan benjolan seperti bisul di ketiak
obat penghilang kebas dan kesemutan alami
cara menghilangkan benjolan dimulut rahim
cara menyembuhkan fistula ani
soli
ReplyDeleteroz
nex
theran
Execute client orders with precision.
ReplyDeleteThe company is keen to listen to the opinion of the customer in the cleaning process and support his observation.
Read about swimming pools cleaning company doorشركة تنظيف خزانات بالرياض
شركة تنظيف بالرياض
شركة تنظيف شقق بالرياض
شركة النجوم لخدمات التنظيف
Affordable trucks moving company provides safe and secure moving services. If you need their service, go to the Trucking Cube website and fill all your requirements there or you call them directly.
ReplyDeleteTruck Rental Near Me
Rent moving truck
thanks for sharing such a wonderful information from this post
ReplyDeletedigital marketing
Amazing Article,Really useful information to all So, I hope you will share more information to be check and share here.
ReplyDeleteinplant training
inplant training chennai
inplant training meaning
inplant training certificate
inplant training report
report for inplant training
inplant training certificate format
inplant training meaning in tamil
what is inplant training
inplant training in chennai for mechanical
Amazing Article, Really useful information to all So, I hope you will share more information to be check and share here.
ReplyDeleteflask in python
how to install flask in python
what is flask in python
flask in python tutorial
how to create a web page using flask in python
rest api using flask in python
how to install flask in python without pip
flask in python is used for
what is flask in python used for
learn flask in python
Congratulations on receiving a great response to your post! We at the Myassignmenthelpau platform understand how difficult it can be for the students to manage complicated assignments in high school, college, or university, therefore, we have introduced an exclusive Assignment Help Canada facility that will cater to all your writing requirements precisely.
ReplyDeleteI really appreciate the way you write...Please check my work as well
ReplyDeleteGuwahati Call Girl
Guwahati Call Girl
Guwahati Call Girl
Guwahati Call Girl