Wednesday, February 25, 2015

WebCenter Content - Component Development Tips and Tricks

Hey all,

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 '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

82 comments:

  1. 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

    ReplyDelete
    Replies
    1. well most of the time the people are so much skilled in there profession so they could detect any problem just by looking at it just like this some of my friends are website developer they can easily do the coding thing so they don't have to be worry about it.

      Delete
  2. Samsung Galaxy S9 is unbreakable. To know more features visit the site
    Tech

    ReplyDelete
  3. Nice post - Thanks for sharing this kind of post with us. really very great stuff, keep posting...

    ReplyDelete
  4. 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.

    ReplyDelete
  5. Thank you for sharing the information. Glad to find it here.
    instagram technology

    ReplyDelete
  6. Thank you for sharing this very nice post awesome keep sharing.
    click here

    ReplyDelete
  7. If 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

    ReplyDelete
  8. Execute client orders with precision.
    The 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شركة تنظيف خزانات بالرياض
    شركة تنظيف بالرياض
    شركة تنظيف شقق بالرياض
    شركة النجوم لخدمات التنظيف

    ReplyDelete
  9. 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.

    Truck Rental Near Me
    Rent moving truck

    ReplyDelete
  10. thanks for sharing such a wonderful information from this post
    digital marketing

    ReplyDelete
  11. 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.

    ReplyDelete

  12. The blog is quite resourceful, however a touch of the professionals can diversity it even further. Visit myassignmenthelpau.com and watch how the experts promise a fine quality Assignment Help Sheffield. The best experts in the business are here to take care of your academic needs.

    ReplyDelete
  13. MyAssignmenthelp.com is one of the common names which appear on the top of every search query regarding academic assignment help. However, in today's date, it is difficult to identify a reliable service provider. People, who are familiar with MyAssignmenthelp.com, might not require a review of its services. For those who are new to MyAssignmenthelp read My Assignment Help reviews, here are a few things you should know about the service provider.
    MyAsignmenthelp.com is a decade-old assignment solution provider, which has served thousands of students over the years. Interestingly, the company has close to 5000 experts in their team. Also, they have delivered over 870,000+ orders over the past few years. One can find the details about the service provider on the company's landing page itself.
    The website features more than 14,000 user reviews, in which MyAssignmentHelp reviews is rated high (4.9 out of 5) by the customers. Earning such reviews is no joke. Even if a person did not avail any service from MyAssignmenthelp.com, he/she can be assured regarding the support they can expect from the company. Most Aussie, USA, UK, Singapore University students appreciate their service.
    There are multiple reasons why MyAssignmenthelp is favored by students, Know the truth by reading MyAssignmentHelp review. Firstly, the website features wide range of services across 100+ subjects and disciplines. Some of the major services include:
    Assignment writing service
    Dissertation writing service
    Essay writing service
    Case study writing service
    Homework help service
    Report writing service
    PowerPoint service
    Coursework writing service
    Apart from My Assignment Help review, the website also provides editing and proofreading service, 24x7 support, formatting and citations service, and much more.
    The majority of the user reviews suggest that MyAssignmenthelp.com has provided them with quality support whenever they requested for it. Some reviews also highlight the fact that the solutions provided by the Myassignmenthelp writers were not only rich in quality, but were also plagiarism-free.
    Coming to the pricing of the services, MyAssignmenthelp is among the most affordable service providers in the industry. Each of the services is priced nominally. Besides, the website also offers regular deals and discounts to the customers, making the services even cheaper. Also, MyAssignmenthelp.com has a referral scheme which allows the customers to earn bonus credits.
    Interestingly, the website has a hassle-free rework and refund policy that safeguards the interest of the clients in case the requirements of the paper are not met. In fact, in Myassignmenthelp.com reviews, they promises unlimited rework until the original requirements of the client are met.
    Some other features of the website include unlimited revisions of the paper, free access to samples, 100 % confidentiality and secure payment method. If you too are looking for academic assistance, get in touch with the customer support of MyAssignmenthelp.com right away!

    Summary: MyAssignmenthelp.com is a common name in the field of online assignment writing. But, does it live up to its reputation? Here is a brief overview of the service of MyAssignmenthelp.com.

    ReplyDelete
  14. Dehradun is the hub of beauties, if you have come to Dehradun for some kind of tour or trip, you are in the right place because we have gorgeous call girls in Dehradun.

    Dehradun Escorts | Escorts in Dehradun | Call girls in Dehradun

    ReplyDelete
  15. Why MyAssignmenthelp.com stands out from the crowd? Know the facts.
    MyAssignmenthelp.com is a complete assignment solution provider. They are a leading company across the world, serving the students with all honesty. They know that students need assignment help to get rid of enormous pressure during assignment submission. My Assignment Help Reviews is a reliable place for students who seek attention. If you are not sure about hiring this company as your assignment helper, you can go through the customer My Assignment Help Review from reliable review website.

    There are a lot of assignment services available in the market, but MyAssignmentHelp reviews stands out from the crowd. Here are the facts which differentiate this service provider from the others.

    The experts do research, writing, and proofreading

    At MyAssignmentHelp review, the subject matter experts have the knowledge and skills to compose a quality paper. The experts complete the assignments in three steps. First, they do wide research on the topic and gather a lot of information. As the professionals have in-depth knowledge on the subject, they know where they can find the relevant information. After collecting data, they start composing the paper, following the structure that is required for the assignment. When drafting is complete, they proofread it and make the necessary changes.

    Must Read: Myassignmenthelp.com review

    The professionals craft papers of impressive quality

    The professional writers of this company do not compromise with the quality of the assignments. The subject experts always pay particular attention to each paper to deliver the best quality of assignment. Customer's satisfaction is valuable to the company.

    The service provider covers all sorts of writing assignments

    From essay writing to case study, services of MyAssignmenthelp include all kinds of assignment papers. Whatever be your subject, topic, level, or type of your assignment, they have a solution for you.

    They maintain confidentiality

    At My Assignment help, a strict code of conduct is followed to safeguard the details of the customers. It is guaranteed that your details will be kept 100% confidential. So, you can place an order with us, without being worried about confidentiality.

    Must Read: Myassignmenthelp.com reviews

    The team delivers assignments promptly

    No matter how long or short is the time of the delivery from the date of booking, the dedicated team of professionals always try to provide the work before the promised time. They know the value of time. Unlike the fraud or scam services, the experts work relentlessly to hand over the perfect paper to you.

    They serve the students at an affordable price

    The company has set an affordable price listing. They also have good refund policy. Sometimes students are charged with a high price, largely due to the complexity of the assignment. The lowest price depends upon the type of the assignment paper and the deadline of project submission.

    Topassignmentreviews.com is the best writing review website, where you can find top assignment reviews of the best companies. MyAssignmenthelp.com is one of the best service providers which have earned the trust of thousands of students.

    ReplyDelete
  16. I just want to mention I am just newbie to blogging and site-building and actually loved you’re blog. Likely I’m planning to bookmark your blog post . You definitely have fabulous articles. With thanks for sharing your website page. I am offerig tawakkal fabrics please visit here to get more info.

    ReplyDelete
  17. IRMA: Everything you need to know

    IRMA

    ReplyDelete


  18. In the meantime, I wondered why I couldn’t think of the answer to this simple problem like this.
    Your article is an article that gives the answer to all the content I’ve been contemplating'

    Also visit my site : 대구오피
    (jk)

    ReplyDelete
  19. But what type of sales professional would suit? No one ever achieved true wealth working for another. Control of one's sales destiny lies with management decisions than can keep an entrepreneurial mind in short trousers. Salesforce training

    ReplyDelete
  20. A smart link building service does not only focus Buy backlinks

    ReplyDelete
  21. If you are looking for the site for tyres in dubai. you must visit Yalla Tyre as they are sailing the best tyres dubai

    ReplyDelete
  22. You should deal with an SEO or digital marketing agency in Malaysia, which has a proven track record for providing good results of ROI (Return On Investment). For this, you may consult the SEO agency first and explore its website promotion process and duration to get expected results under the limited time frame.

    ReplyDelete
  23. Today if someone asks me what you saw best then I would like to say that I saw your post best today and it is a very beautifully written post which I appreciate. And I also think that if you see someone's post and it is beautiful and well written, that should be appreciated.

    ReplyDelete
  24. I am here now and just want to say thank you for a tremendous post and an all-around entertaining website. It is an extraordinary site you have here…I sincerely acknowledge BLOGGERS like you! deep love messages for her 

    ReplyDelete
  25. That we call a genuinely useful blog. It is exceptionally overall quite the information you utilized in it is extremely valuable for us. I'm here simply because of your enlightening posts. A debt of gratitude is in order for shearing and continue to share. tyre offers abu dhabi

    ReplyDelete
  26. I love these mish mash posts you have been doing lately. Its really interesting and like a diary. Your blog always make me like "God. Thanks
    Aalia Sharma

    ReplyDelete
  27. Your post is helping me a lot. Its really nice and epic. Thanks a lot for the useful info on this topic. You did it so much well. I love to see more about GB WhatsApp. Keep sharing and updating. Also share more posts with us. Thank you.

    ReplyDelete
  28. If Check the two finishes of the USB link are solidly embedded. Assuming the printer offline is arranged then ensure the Ethernet link is immovably embedded. If that the printer is remote actually take a look at your web association or ensure it's associated with your switch.

    ReplyDelete
  29. Thanks for sharing the tips! We function here to deliver assistance for all the SBC Global users. So to fix any issues with your account, you can visit our web page. You can also check out the solutions related to sign-up, login, SBCGlobal email settings, etc. Also, you will know all about the SBC and Spectrum email relation, so consider giving us a chance.

    ReplyDelete
  30. If you are pursuing in college to complete your higher studies, I think you must know the complications involved in the subjects. Irrespective of the effort you put in to acquire a vivid idea, you are likely to face difficulties while drafting an assignment. May you are searching for a good writer for college assignment help. For more information visit edit my essay now! You can also contact us, our support is live 24/7 for better assistance.

    Services:

    Aussie Pooch Mobile Case Study

    Samsung Case Study Help

    Wells Fargo Case Study

    Write My Essay

    Nestle Case Study

    ReplyDelete
  31. Thanks for sharing Informative post . Drift tyres is a best tyre shop in dubai that presents cost-effective special offers on tyres – we cater to clients across the UAE

    ReplyDelete
  32. Thanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff.
    write for us on Businesses

    ReplyDelete
  33. Thanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff.
    employmentexchange

    ReplyDelete

  34. Thanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff.
    Lily Lockett

    ReplyDelete
  35. Excellent read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch. 메이저사이트

    ReplyDelete
  36. I was looking for another article by chance and found your article 룰렛 I am writing on this topic, so I think it will help a lot. I leave my blog address below. Please visit once.

    ReplyDelete
  37. Nursing is a prevalent choice for upcoming medical professionals because of many reasons. One of the probable reasons can be the recent flow of viruses that made it necessary for hospitals to equip only the most reliable officials. The students will have to still go through theory tests and rigorous training to learn the operation of every piece of equipment. Most practical knowledge is necessary for this environment, and students mostly focus on that aspect throughout their student life. The fact that students often sway towards acquiring help with nursing assignment, is undeniable.

    ReplyDelete
  38. Sina Tyres is the best tyre shop to buy your desired car tyre for your car.They are the quality tyre producer in Dubai.The best shop to buy your car tyre from.They also provide the other services like Battery Changing,Braking Pads,Window Tinting Services and also Nitrogen Air Filling services at very Discounted prices.

    ReplyDelete

  39. Magic Tyres ( Best Tyre Shops In Dubai) are the quality tyre producer in Dubai.They are the large tyre producer in all over Dubai.They have a wide range of quality tyres for your car to provide the best tyre experience and to increase the performance of your car.

    ReplyDelete
  40. Sand Dance Tyres are the best tyre shop in Dubai.They are the quality tyre producer in all over Dubai.They also deals with the branded tyres and also they have the wide range of quality tyres in Dubai which provides you the best tyre experience and maintain the performance for your car. Dunlop Tyres

    ReplyDelete
  41. Massage near me this is the most popular type of massage that novices should be familiar with. This is a basic massage that covers the entire body.

    ReplyDelete

  42. Looking for Full Body to body massage spa near me Home Service, Body Spa in Delhi for female to male at our renowned sparsh body spa.

    ReplyDelete
  43. This is definitely one of my favorite blogs. Every post published did impress me.
    thoptv for pc
    oreo tv for pc
    Download alexa app for windows 10 pc

    ReplyDelete
  44. Sina Tyres is the best tyre shop to buy your desired car tyre for your car.They are the quality tyre producer in Dubai.The best shop to buy your car tyre from.They also provide the other services like Battery Changing,BrakingPads,Window Tinting Services and also Nitrogen Air Filling services at very Discounted prices. Tyres Shop Near Me

    ReplyDelete
  45. Magic Tyres is a tyre commercial enterprise that gives you with brilliant tyres you may remember on. We are targeting supplying Dubai with low-priced tyres even as additionally bringing the final really well worth of your cash to the fore. In addition, we additionally offer greater offerings designed to offer you with the most performance and fee you may get on your cash. We are growing innovative and first-rate Next Generation tyres that deliver extremely good fee to customers throughout the segments of passenger, industrial vehicle, commercial or agricultural. Tyre Shop In Al Quoz

    ReplyDelete
  46. Sand Dance tyres is a community of carrier facilities that offer car offerings for tyres, batteries, lubricants and car refurbishment in the course of the United Arab Emirates. Our committed crew of experts can make certain that your car runs smoothly, correctly and safely, and that everybody can power effortlessly. With an intensive catalog of brilliant tyres, batteries, lubricants and merchandise for all varieties of cars (from vehicles to SUVs, etc.), there may be usually one for you. Sand dance tyres are right here to offer you the at maximum great offerings we've. We offer all type of tyre offerings and we've an excessive tech restore shop, in addition to nicely skilled mechanic who can cope with your car. Tyre Shop Near Me

    ReplyDelete
  47. Spasweety is the best We are an award-winning spa, and have been recognized by many organizations for our achievements.

    ReplyDelete
  48. We can help you find the best Body massage spa near me service for out-call services to keep your spa experience going at home. Body Massage in Bangalore

    ReplyDelete
  49. Hello, this is Kavya. Spa Owner in the Bangalore. I have been providing spa services for over 10 years now. My goal is to make sure all of my clients leave feeling relaxed and refreshed! Body Massage in Bangalore

    ReplyDelete
  50. Massage can bring you a sense of calm and deep relaxation. Massage stimulates endorphins, which are brain chemicals (neurotransmitters), that cause feelings of well-being.Visit full body massage near me

    ReplyDelete
  51. Safe and secure massage spa Bangalore, for female also therapies are there Indian Ayurveda massage to reduce stress. Visit body massage spa near me

    ReplyDelete
  52. Hey really nice piece of content shared, Thank you for Sharing. Click Here If You Know About online assignment help

    ReplyDelete