How do I get Ant task deploy to fail on error within an ojdeploy-build ?

I am calling ojdeploy on an xml file with several <deploy> tasks within the <ojdeploy-build> task.
FYI this dramatically increases performance when doing several deployments.
I want to find a way to have the script stop with an error as soon as one of the <deploy> tasks fails with an error (such as a compile error). It does not currently do this.
Is there a way to get the script to stop as soon as a <deploy> task fails within the outer <ojdeploy-build> task?
(eg. could I somehow check the return code for each deploy explicitly and do an exit if the deploy fails)
My Ant book claims that Ant tasks normally fail on error, and when one task fails the Ant script stops at that point. Some Ant tasks (such as exec) have an explicit failonerror attribute which can change this behavior to ignore a non-zero return code from the task and continue executing the Ant script.
It seems to me that the <ojdeploy-build> task has a serious bug where it (probably using java try-catch) ignores the error from <deploy> and keeps going to the next <deploy>, violating a basic design principle of a proper Ant task.
Where can I find the java code for <ojdeploy-build> to confirm my suspicion and then report the bug officially?
Meanwhile, I am very interested in finding some workaround for this bug that preserves having several <deploy> in one script. If I put just one <deploy> in each <ojdeploy-build>, the huge performance improvement is lost.

I played with it some more and it seems that failonerror and resultproperty actually work in JDev 11.1.1.4.0 They are inherited from the [url http://ant.apache.org/manual/Tasks/exec.html]Ant Exec task and work, you just have to set failonerror="true", e.g.
<ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"
                  executable="${oracle.jdeveloper.ojdeploy.executable}"
                  failonerror="true"
                  resultproperty="ojdeploy.exit.code"
                  ora:buildscript="${oracle.jdeveloper.deploy.dir}/ojdeploy-build.xml"
                  ora:statuslog="${oracle.jdeveloper.deploy.dir}/ojdeploy-statuslog.xml">
...Note that resultproperty is useful only if failonerror="false", use one or the other.

Similar Messages

  • How do I get rid of "Your connection failed because the communication device is unavailable"? Pops up 4 times every time I boot my MBP.

    How do I get rid of "Your connection failed because the communication device is unavailable." ?  Pops up 4 or 5 times every time I log on to my MBP.

    Hi there
    Do you happen to use a USB modem or something like that? This could be the cause.
    You could try creating a new network location to see if that fixes it (if not you can just reverse it)
    1. Go to  Menu -> System Preferences
    2. Then go to Network on the 3rd row
    3. Make sure the padlock is unlocked (bottom left) with your admin password
    4. Choose 'Automatic' next to 'Location' at the top.
    5. Choose 'Edit Locations'
    6. Then click the + button, and create a new one called home/test/somethingorother
    7. Click Done -> Save and wait a few seconds
    8. You may have to reconnect to your Wi Fi network etc.
    If you have a USB modem, the above steps will most likely remove its config from the Network preferences. As I said, its reversable (just change location back to automatic)
    Have fun

  • TS3694 how can i get my 3g iphone out of 1015 error

    How cann I get my 3g iphone out of 1015 error 

    You can't get help here. Jailbroken phones can not be discussed per the TOS.

  • How do I get rid of "Server responded with an error"?

    How do I get rid of "Server responded with an error" in Calendar?  Calendar is frozen and Calendar menu will not allow preferences or quit.

    Please take each of the following steps that you haven't already tried, until the problem is resolved. Back up all databefore making any changes.
    Step 1
    From the Calendar menu bar, select
    Calendar ▹ Preferences ▹ Accounts
    Choose the affected account from the list on the left and uncheck the box marked
    Enable this account
    Then check the box again. Test.
    Step 2
    Make a note of the account settings, then delete the account and add it back with the same settings.
    Step 3
    If you can't add the account, the settings may be invalid. Verify them. How you do that depends on what kind of account it is. If it's a Google calendar and you've activated 2-step verification, you need to generate an application-specific password in your Google account and enter it in place of your old password.
    Step 4
    Quit Calendar. Triple-click the line below on this page to select it:  
    ~/Library/Calendars/Calendar Cache  
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a file named "Calendar Cache" selected.
    Move the selected file to the Trash. There may be one or two other files in the same folder with names that begin in "Calendar Cache". If so, delete those files too.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • How do I get rid of "Server responded with an error" in Calendar?  Calendar is frozen and Calendar menu will not allow preferences or quit.

    How do I get rid of "Server responded with an error" in Calendar?  Calendar is frozen and Calendar menu will not allow preferences or quit.

    If you've activated 2-step verification, you need to generate an application-specific password in your Google account and enter it in place of your old password.

  • Premiere elements 12, new installation, serial no. accepted, installation completed and new started, but does not run. I get following msg-box: "LoadLibrary failed with error 126: Das angegebene Modul wurde nicht gefunden."

    premiere elements 12, new installation, serial no. accepted, installation completed and new started, but does not run. I get following msg-box: "LoadLibrary failed with error 126: Das angegebene Modul wurde nicht gefunden."   Installation in German Language on WIN7 professional 64bit, Samsung SSD. What can I do to run that program?

    Jurgen Freund
    Premiere Elements 12 on Window 7 64 bit. What video card/graphics card does your computer use - AMD Radeon?
    I have found this YouTube video on the subject of Error 126 with details for resolving the problem.
    How to fix the ERROR 126 when you open OpenGL programs - YouTube
    The link was contributed in an old 2013 thread here by the ID danneomarre (see post 6 of the following thread)
    LoadLibrary failed with error 126: cant find the required
    Please let us know if that worked for you.
    Thank you.
    ATR
    Add On...When all is OK and working, please update 12 to 12.1 Update using an opened project's Help Menu/Update.

  • How can I get the Task information..? Remedy for error "-200089"

    Hello,
    I am using PCI-6229 for the application, and VB6 for application development.
    We have a policy to create the tasks and associated channels using Measurement and Automation Explorer.
    I want to know can I retrieve the information of the tasks those are created ..
    When my VB program starts, I use DAQmxLoadTask function to start executing the task, but for this I need to know the TASKNAME. On site if the service engineer accidentally renames the task name, the program stops execution. To avoid this problem, i would like to know how can I get the information about the tasks, such as the tasks those are created, their names, type of channels used (i/ps, o/ps, Analog channels), etc.
    This would help my application to execute without hard coding the task names as well as I can close the tasks if they are running before exiting the application. 
    Also, while developing the application, it happens that the application crashes, and the tasks remain open and running. After I fix the error and execute the program, the application reports the error, "-200089 Task Name specified conflicts with an existing task name". To recover from this error, I need to restart the PC, which is most frustrating and time consuming. If I could know the tasks and task handles those are already created and running, I can safely delete them or continue using them.
    I would appreciate if you could help me in resolving this problem.
    Thank and regards,
    Kunalb

     Hi Kunalb,
     To read the tasks currently configured on the system you can use this function: DAQmxGetSysTasks.  This will return an array of the tasks on the system. In that same section of the DAQmx C Reference Help they talk about obtaining the other parameters you mention.
     Another solution would be to add security to MAX such that only engineers with proper permissions could launch and/or modify the tasks. This can be done with Windows XP in the properties of a file.
     I hope these suggestions help! Have a great weekend.
     Best regards,
     MatthewW
     Applications Engineer
     National Instruments
    Message Edited by Matthew W on 08-10-2007 02:13 PM
    Attachments:
    DAQmxTasks.JPG ‏97 KB

  • Wldeploy Ant task deploys app in 'New' state

    I am trying to deploy a web application in WL 10.0 using the wldeploy Ant task. However, everytime the application is deployed, the consolidated state is 'New' (or deferred deployment). I have to bounce the servers everytime to bring the app in the Active state.
    Here is my code:
    <target name="undeployWeb">
              <!-- Undeploy the existing deployment -->
              <wldeploy action="undeploy" verbose="true" debug="false" name="${deploymentName}" user="${weblogicUsername}" password="${weblogicPassword}" adminurl="${weblogicAdminURL}" targets="${weblogicTargetServers}" failonerror="false" />
    </target>
    <!-- Deploy .WAR to a target server -->
    <target name="deployWeb">
              <!-- Deploy the application remotely -->
              <wldeploy action="deploy" stage="stage" usenonexclusivelock="true" source="${weblogicDeploymentLocation}/${deploymentName}.war" remote="true" name="${deploymentName}" upload="false" user="${weblogicUsername}" password="${weblogicPassword}" verbose="true" adminurl="${weblogicAdminURL}" debug="true" targets="${weblogicTargetServers}" />
    </target>
    Is there any way to avoid the bounce of the target servers? I wish to activate the web app straightaway. Please help.
    ~hartbrekk

    Thanks user10939158, for looking into this.
    Reason I am saying network is not an issue here because the artifact copy to the remote servers and deployment happens fast, it is just at the step of closing DM connection, it is waiting for a long time (>5 mins). I am guessing that the Deployment Manager message exchanges with the server (internally) has something to do with LAN vs WAN. And, I would expect deployment over WAN take a minute extra as opposed to 5-9 minutes extra what we are seeing now.
    Yes, I tried running the wlst script on the remote server and it is fast as well.
    Just to clarify, I do not have a local server. I run the plain simple ant script on a build box(lean linux box) which is in the US.
    Thanks for your help again.
    - Kris
    Edited by: kris_2000 on May 25, 2010 2:08 PM

  • How do I get Exchange Tasks to display on the mavericks Reminders app

    How do I get Microsoft Exchange 2010 Tasks to display on the mavericks  Reminders app?
    please help me i have contacted Apple Technical Support...which is not worked out for me!
    thanks

    Thanks For your replay 
    1. Which Exchange tasks do you want to get in Mavericks?
    we have  exchange mail server 2010  which is hosting in Canada. just i am trying configure outlook task (reminder) get  in Mavericks app.
    2. What is "Mavericks Reminders app"? Does it mean something like calendar or etc.?
    Yes ! exactly to sync outlook task to mavericks reminder apps.
    3. i have contacted mac technical support team who told me to contact Microsoft.
    (example whatever i am saving my outlook task it should automatically sync mavericks reminder apps..
    waiting for your valuable reply.
    thanks

  • Hi, How can I get the tasks I added to show up in Ical?

    Ive been trying get my tasks to show up in my calendar either on ical or outlook but am unable to, any ideas?

    You have to sync your calendar with some type of service like Google or iCloud or the MS one, is it Outlook.com now, and whatever calendar system/program you are using has to support the sync with that serivce for those tasks to propagate to all your devices.
    I use Thunderbird as an email program on both Mac and PC. My Android phone syncs to Google Calendar along with TBird add-on for a calendar on my PCs and the Mac calendar program in both Lion and Mt Lion sync to google as well. I can add a task on any of them and it shows up on all other devices.

  • How do I get the Audio Books to stick without error on any of my car

    Good evening all.
    I have been drafting a FAN message in my head for several days now, mainly because I have seen so many people baggin all over the ZEN in a number of posts... It's getting late, and I am resolved to not bore everyone with my rhetorical delights, so - for this night I enter to say: - THANK YOU so very much for the Helpful Hints thread, that was very kind. And 2- The PQI SD cards, both the 2GB as well as the 4GB are a hit with the ZEN as well as all the others mentioned thus far.
    Seems a big crowd is very disappointed with the cans and cant's of the internal memory being able to sync up directly with the SD cards; maybe my total "newby'ness", but I am thrilled with my product... I purchased the 2GB ZEN, and then scored the Bluetooth headphones that were discounted over a hundred bux over the Father's Day weekend.
    I'm a disabled, over the hill gentleman, and wanted a media player to keep me company on the powerwheelchair rides into town and what not... Yes... Being able to drag or send **bleep** from internal memory to the SD card, vice versa would be a treat, but things are workable as is.
    My ONLY problem thus far has been in trying to re-sync a couple of Audio Boox, FROM my ZEN internal flash memory, to my PC (that part looks as if it works out OK, and I can get them imported back into the AudioManager library) and then try to get them to hook in error free to one of the SD cards (it's here where the difficulty occurs)... I'd much prefer to have just music on the internal flash, and then carry all my extras on my cards; but I was all excited and stuff... Tried to take baby bites and little steps, but just couldn't resist digg!
    There is simply no way that I can figure out how to get the Audio Books to stick without error on any of my cards. And therefore I am reluctant to delete them off the ZEN itself.
    Ahhhwell... Li've and learn!
    Overall.. I am tickled green with the Creative ZEN, the Earphones and the investment into the extra 0 gigs of card memory.
    Well... That was a bit longer than I wished, but for ME, it was a pretty **bleep** short write!
    Good night all.. Sleep well...
    gypsy
    OH.. And my daughters little PNY 28mb card works with the unit too
    Admin notes: I moved the message from the locked sticky (undergoing cleanup now) so that others can help.
    Message Edited by KokChoy-CL on <span class='local-date'> 07-6-2008<span class='local-time'> :59 AM

    Even if you could get protected content on the SD cards, AFAIK the Zen won't support bookmarks for files on the SD cards. That would make listening to lectures or audio books on the SD card would be very inconvenient?(who wants to have to remember where their place is, then fast forward to it each time they restart listening to it's). I am curious. Do you have any problems getting the audiobook files to play in the correct order, or do the tags sort them properly? It seems like many series of lectures or other series of audiofiles sort properly on the pc or in mp3 players that use the folder/filename system, but might not sort properly based on the ID3 tags?

  • HT1879 How can I get a refund on purchases made in error in the itunes store?

    My kids purchased and downloaded music from the itunes store that i was not aware of nor wanted til it wouldnt let me download anything else from itunes or any apps.  How can I get refunded for these downloads?

    You can try contacting iTunes support via this page and see what they say : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How do you get Encore to work? Internal software error.

    I've made a new project with Encore CS4 consisting of mainly slideshows and about 2 movie timelines. I've created menus to be how i want them.
    When i go to build the project about 9/10 it doesn;t work. Sometimes it just crashes and gives a crash report. other times it does all the building slideshows and motion menus then starts the prepare build and comes up with internal software error, and build stops.
    This is extremely frustrating as it takes serveral hours to get to this stage every time because it has to re build all the slideshows.
    It has only worked once, and it wasn;t quite what i wanted so i made some minor adjustments (added a pic in a slideshow, or music to a menu) and since have tried twice to rebuild it and it hasnt worked.
    Encore seems like it could be really good but all its bugs make it a piece of crap.

    I don't remember the dimensions, but I have read messages that pictures that are too large will cause problems... maybe someone will come along who knows the actual size and can tell you
    Also... This is aimed a Premiere Pro, but may help
    First, work through all of the steps here http://ppro.wikia.com/wiki/Troubleshooting
    If your problem isn't fixed after you follow all of the steps, report back with the DETAILS asked for in the questions at the end of that link

  • How do I get expert help to solve Java Script error in PS?

    My Photoshop CC (and previous versions) do not see Java script, therefore any automation functions do not work.
    I have been dealing with Adobe support in India since September and have had no resolution. Although they keep saying the case has been escalated, I have yet to talk to anyone who seems to have any understanding past following a check list.
    Please help- how do I get in touch with someone who can actually troubleshoot the problem?

    I think an extension is the most likely culprit.
    Tools > Add-ons > Extensions category
    * You might try updating your extensions, in case updates are available. The "gear" icon > Check for Updates is the easiest way
    * If no updates are available or the problem persists, try to '''disable''' all nonessential extensions (i.e., all the ones you do not absolutely need to tolerate using Firefox today). Simply click all those Disable buttons and then restart Firefox.
    Can you browse for an extended period without seeing the message?

  • Task Sequence has failed with error code: 0x80070570

    I've created task sequence for Windows XP OS Deployment. WinPE boot image loads successfully, Partitions are formatted successfully too. But during "Applying image 1 from volume C:\" I receive following error:
    Task Sequence: My_task_sequence_name has failed with error code: 0x80070570.
    What I need to do? Any ideas? (My computer has following details: ASUS P5KSE motherboard, Core 2 Duo, SATA HDD, Atheros L1 adapter)

    No, a build and capture task sequence automates the build of the image removing any and all human intervention so that rebuilding or refreshing an image becomes a simple matter. Building images by actually manually installing Windows is anti-IT.
    File corruption can be caused by many, many things; e.g., anti-virus, physical disk errors, network transmit errors, etc.
    Jason | http://myitforum.com/cs2/blogs/jsandys | http://blogs.catapultsystems.com/jsandys/default.aspx | Twitter @JasonSandys

Maybe you are looking for

  • Webutil_Host and Client_Host

    Hi, I am wondering what is the difference between Webutil_host and Client_host? I am trying to call sqlplus.exe located in the server and run a text file in the client side. I am wondering if I use webutil_host or client_host? Thanks in advance!

  • I looked at my payment info and now my itunes card balance has disappeared. How do I get it back?

    I looked at my payment info in itunes and I had a $15 itunes card scanned in. When I went to take my credit card off my itunes balance disappeared. I cannot find the balance anymore. I already threw the card away. How can I get my balance back?

  • Strange Problem in HTML DB 2.0 version-

    I am creating one application which consists of 2 tab pages. At end of 2nd tab page, i will make a insert statement to insert data in database. Now, when i enter data in first tab page and go to next tab page, data from first page disappears. But on

  • FAGLL03, FS10N (Layout), FBL3N  Customer No not Pick

    Dear All, when my user go for GL line item level through FAGLL03, FS10N (Layout), FBL3N customer no not picking line layout In that perticuler GL account Sort key also assign Customer no but line layout cutomer field is there but not pick the custome

  • Migration mysql to Oracle thr SQL Developer 1.2

    Customer using SQL Developer migrate MySQL4.1.22 database data to Oracle 9206 database. Capture and Convert completed but it hang during generate stage. Customer follow steps published in otn.oracle.com. 1-2 steps Create a schema and user, named "clu