Ojdeploy and Hudson - how do we stop - quick question

Hi All
In our simple script that's used in Hudson, We use ojdeploy -buildfile a.xml -define application.root=/root/test
It works fine when everything compiles but when it fails, the script continues executing with errors which leads to false build status as pass since the shell script runs to the end of file.
How to do use in the shell script with ojdeploy to give a non-0 error number in shell script when ojdeploy fails ?
Any simple concrete example would be great.
Thanks

In your shell script, you should be able to get the result of the previous process using "$?". So you could evaluate that after calling ojdeploy and if that contains an error code, you should be able to exit your script.
If you want to use the Ant task, you need to define the task:
  <taskdef name="ojdeploy" classname="oracle.jdeveloper.deploy.ant.OJDeployAntTask" uri="oraclelib:OJDeployAntTask"
            classpath="<put the path to your jdeveloper home here>\jdeveloper\jdev\lib\ant-jdeveloper.jar"/>Then you can use ojdeploy (here to run a deployment profile specified in the workspace):
       <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"
                    executable="<put the path to your jdeveloper home here>\jdeveloper\jdev\bin\ojdeploy.exe"
                    failonerror="true"
                    ora:buildscript="${WORKSPACE}\build_workspace.xml"
                    ora:statuslog="${WORKSPACE}\build_log.xml">
        <ora:deploy>
          <ora:parameter name="basedir" value="${WORKSPACE}\<directory of the application>"/>
          <ora:parameter name="workspace" value="<name of your workspace file in the basedir>"/>
          <ora:parameter name="profile" value="<deployment profile name>"/>
          <ora:parameter name="outputfile" value="<name of the ear file to be created>"/>
        </ora:deploy>
      </ora:ojdeploy>We're building on Windows as you can see, so you might need to adjust the paths and the executable for Linux.
You might also take a look at:
http://one-size-doesnt-fit-all.blogspot.fr/2010/11/using-ojdeploy-and-ant-for-creating-adf.html
http://javaosdev.blogspot.fr/2011/12/ojdeploy-documentation-for-tool.html
Sascha

Similar Messages

  • I have my Dad's apple ID etc, but he has an iphone and i have an Ipod Touch then on IMessage i can read all the messages he recieves and sends and he can read all the messages i send and recieve how do i stop this?

    Hi
    I have my Dad's apple ID etc, but he has an iphone and i have an Ipod Touch then on IMessage i can read all the messages he recieves and sends and he can read all the messages i send and recieve how do i stop this? But i still want to send messages to him.
    Thank You

    . You do not need a seperate Apple ID. One one device you just need to go to Settings>Messages and add another/different Messaging email address and delete the common Apple ID address. Also see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • Using cs6 pencil and my strokes overlaping and dark. how do I stop this?

    using cs6 pencil and my strokes overlaping and dark. how do I stop this?

    Check the tool options bar and make sure the opacity is 100% and the mode is Normal.
    If you need to paint with reduced opacity or a blending mode with either the brush tool or pencil tool, using a separate layer and adjusting the opacity or blending mode of the layer works better.

  • Works on pages are highlighted and linked, how do i stop that?

    duplicate of [/questions/971290] ~j99
    i understand that links are in blue, but i am getting suggested links in other colors and things that may or may not be link is different colors. i even have pictures pop up when i move my mouse over these highlighted words. it's like there are KEY WORDS that LIGHT UP... can i stop this?
    here is an example:
    Psychic Society International certification: 12-1-1998
    Ordained, Reverend, Universal Life Church: 4-21-1999
    certification, Ordained, and Universal Life are all HIGHLIGHTED and when in put my mouse over it a picture will show up.
    how can i stop this??

    Can you provide a URL for a couple of pages that have this problem so a volunteer can take a look at the site?
    Do ads appear when you mouse over those phrases? Some extensions include that advertising technology, but I'd be surprised if someone is using those terms to display ads. Still, worth checking.
    Try disabling ALL nonessential or unrecognized add-ons on these two tabs (if you don't use the add-on every day, disable it, it's easy to re-enable):
    orange Firefox button (or Tools menu) > Add-ons > Plugins category<br>
    orange Firefox button (or Tools menu) > Add-ons > Extensions category
    Usually a link will appear above a disabled extension to restart Firefox. You can complete your work on the add-ons page and click the link as the last step.
    Any improvement?

  • I have a Mac, an iPad and an iPhone.  When I contact someone using iMessage, for example using my iPad, the entire conversation also appears on my Mac and iPhone - How do I stop this duplication?

    I have a Mac, an iPad and an iPhone.  When I contact someone using iMessage, for example using my iPad, the entire conversation also appears on my Mac and iPhone.  How do I stop this duplication?

    Hello ctb4408,
    With iMessage, it is meant to show up on all your iOS devices and Mac. If you do not want them to go across all your devices, then you will need to turn off iMessage on your iPad and Mac Pro.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Regards,
    -Norm G.

  • I have just had an iPad mini but all my messages are coming through on my iPad and iPhone how can I stop this happening

    I have just had an iPod mini but my messages are coming through on my iPad and my iPhone how can I stop this happening ? Do I need to reset my iPad ?

    To prevent messages from reaching both devices you can turn off Messages on the device you do not want to receive messages but keep Messages on on the device you do want to receive Messages.
    You might also look at this option for both devices.
    Settings > Messages > Send and Receive > review the a riotous choices for how you can e reached and select the ones that are most appropriate for you and the device you are setting.

  • My daughter has just purchased $1250 of "in game" credits, a) how could this occur without a pass code and b) how do I stop this from reoccuring

    My daughter was playing Pet City, somehow she purchased $1250 in credits against our credit card. How could this occur, how do I stop it from happening again
    Thanks

    Contact Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support visit online support site.
    For iTunes: Apple Support for iTunes - Contact Us

  • My internet browers keeps getting big and small. how can i stop it from happening

    Why does my browser continue getting big and small. first it happened when I first installed chrome so I delete chrome and install firefox. I constantly have to reset the font size and view. How can I stop this from happening.
    Thanks

    hi,
    Is there a chance that someone else has used the system?
    You may also want to boomark these for occassional reference:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions/Add-ons]
    [https://addons.mozilla.org/en-US/firefox/performance/ Slow Performing Extensions/Add-ons]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]

  • Words on pages are highlighted and linked, how do i stop that?

    i understand that links are in blue, but i am getting suggested links in other colors and things that may or may not be link is different colors. i even have pictures pop up when i move my mouse over these highlighted words. it's like there are KEY WORDS that LIGHT UP... can i stop this?
    here is an example:
    Psychic Society International certification: 12-1-1998
    Ordained, Reverend, Universal Life Church: 4-21-1999
    certification, Ordained, and Universal Life are all HIGHLIGHTED and when in put my mouse over it a picture will show up.
    how can i stop this??

    hello, this sounds like a problem possibly caused by adware/malware on your pc. please go to ''firefox > addons > extensions'' & remove any suspicious entries (toolbars, things that you have not installed intentionally, don't know what purpose they serve, etc). also go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    [[Troubleshoot Firefox issues caused by malware]]
    See also locked duplicate containing a reply [/questions/971288] ~J99 (Thanks for flagging that Philipp)

  • Everytime I open a new page in firefox a you tube video keeps opening and playing, how do I stop this?

    I had clicked on a you tube video accidentally and now, everytime I open a new page the video comes up. How can I make this stop?

    Check the Home page setting.
    *https://support.mozilla.org/kb/How+to+set+the+home+page

  • Me and my wife share itunes acct for iour iphones and ipads how do we stop geting each others e-mails on our own devices

    me and my wife have iphones and ipads but we seam to get each others e-mails and would like to keep them seperate how do we do that when shareing one itunes acct

    According the this: http://www.apple.com/mobileme/transition.html, "After moving to iCloud, family member accounts are no longer linked to the master account."  You can share an iCloud calendar (see http://support.apple.com/kb/PH2690), but I don't think you will be able to share iCloud contacts unless you are signed into the same iCloud account on both phones.

  • When i plug in my ipod touch (8gb, 3rd generation) it doesn't turn on and the apple logo flashes on and off. how can i stop it and turn on my ipod??????

    when i plug in my ipod touch (8gb, 3rd generation) it doesn't turn on and the apple logo flashes on and off. before this it wouldn't turn on unless it was plugged in.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • Items doubling on icalendar on iPhone and computer how do you stop it

    My phone and Mac computer double dates and events.  How can i prevent the doubling when they sync or not sync?

    Hey dickwilkin!
    Here is an article that may be able to help you resolve this issue:
    If you see duplicate calendars or events after setting up iCloud Calendar
    http://support.apple.com/kb/ts4118
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • HT3069 I tried to download a rent film on my iPad and it just keeps downloading and redownloading how do you stop cancel

    Can anyone help with cancelling a download of a rental film as it just keeps downloading

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3. Tap on your Apple ID
    4.Tap "View Apple ID"
    5. Enter your user name and password.
    6. Tap "Country/Region."
    7. Tap "Change Country/Region"
    8. Select the region where you are located.
    9. Tap "Done".

  • Thunderbird adds additional unwanted characters into som messages both sent and received - how can I stop or avoid this?

    duplicate of [/questions/1043581]
    Eg : grees C…..I’ve only 6

    Closing....
    Please continue discussion on your other active thread https://support.mozilla.org/en-US/questions/1045881

Maybe you are looking for