Passing paramter from ANT to shell script doesn't seems to work for me;Help

Hi,
what iam "trying" to do is to pass some variables from my ANT script to a shell script. This is what iam doing with my 3 files. Iam getting errors when iam doing this.
1) build.xml file:
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="dev" default="all" basedir=".">
    <!-- (2) Create the class path -->
    <path id="common.class.path">
        <pathelement
location="/opt/bea/weblogic81/server/lib/weblogic.jar"/>
    </path>
    <!-- create a reference for the class path utilized -->
    <property file="./myAnt.properties"/>
    <property name="common.class.path" refid="common.class.path" />
    <property name="Deploy.scripts.folder" value=
"/opt/bea/weblogic81/server/bin/applicat
ions" />
    <property name="1" value="${ANTPATCH}" />
    <property name="2" value="${WEBLOGICJAR}" />
    <property name="3" value="${ADMINPORTNUMBER}" />
    <property name="4" value="${HOSTNAME}" />
    <target name="xyz">
        <echo message="***********deployment**********"/>
        <property name="general.deployment.script.name"
value="${general.script}" />
    </target>
    <target name="sangitatest">
        <echo message="This is the TESTNET box"/>
        <exec dir="${Deploy.scripts.folder}"
executable="${Deploy.scripts.folder}/${genera
l.deployment.script.name}" />
        <arg line="${1}"/>
        <arg line="${2}"/>
        <arg line="${3}"/>
        <arg line="${4}"/>
    </target>
    <target name="all" depends="xyz,sangitatest" />
</project>---------------------------------------
2) myAnt.properties file:
general.script=deployScript.sh
ANTPATCH=/opt/bea/wlserver6.1/lib/latest_deploy.jar
WEBLOGICJAR=/opt/bea/wlserver6.1/lib/weblogic.jar
ADMINPORT-NUMBER1=7001
HOSTNAME=reliant2-----------------------------------------
3) deployScript.sh file:
export ANTPATCH=$1
export WEBLOGICJAR=$2
export ADMINPORTNUMBER=$3
export HOSTNAME=$4
java -cp "$ANT-PATCH":"$WEBLOGIC-JAR" weblogic.deploy -port
"$ADMIN-PORT-NUMBER" -host "$HOSTNAME" -component testMon:beamon_biko_s1 deploy
weblogic testMon /export/home/san5sxs/applications/beamon/myfile.war-------------------
and the Exception is:
[echo] This is the TESTNET box
[exec] /opt/bea/weblogic81/server/bin/applications/deployScript.sh: ANTPATCH=: is not an identifier
[exec] Result: 1
BUILD FAILED
file:/opt/bea/weblogic81/server/bin/build.xml:30: Could not create task or type of type: arg.
Ant could not find the task or a class this task relies upon.
any help in this matter ??
regards,
sangita

Have you looked at [url http://ant.apache.org/]ant's website
That's apache's ant. I'm not sure if there are others or not.
if so, here is the mailing list [url http://ant.apache.org/mail.html]info

Similar Messages

  • I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    Hard Drive:  The Hard Drive is on my camera (Sony Handycam)
    Just needed some info on what is going on with your particular system.
    Knowing the exact camera model will also assist us.
    If this camera is standard AVCHD you should be able to connect with USB to Mac with FCE open and use Log and Transfer without all the fiddling around converting etc.
    What FCE does during ingest is convert files to AIC. (Apple Intermediate Codec)
    FCE cannot read the individual files in the BDMV folder, that's why all the converting is required when you use that method.
    BTW: regards formatting drives/cards/memory on cameras; it is wise to use the actual device to format rather than a computer. This is a prime cause of read/write goof ups with solid state media. This applies to still or video cameras.
    Keeping the COMPLETE card/memory structure in tact is vital for successful transfers.
    Try here for some trouble shooting tips:
    https://discussions.apple.com/message/12682263#12682263
    Al

  • HT4527 I have my entire music library (purchased and burnt CD's) on my iPod Touch from one computer and I wanted to sync it all to my new computer. I was hoping it would all transfer via sync when I plugged it in but it doesn't seem to work. Please help?!

    I have my entire music library (purchased and burnt CD's) on my iPod Touch from one computer and I wanted to sync it all to my new computer. I was hoping it would all transfer via sync when I plugged it in but it doesn't seem to work. Please help?!

    Ok, I had a glitch, forced to restart, and lost my train of thought.
    Reinstalling iTunes should fix the major issue that might have gone wrong, perhaps your explaination points will disappear and everything will be peachy again.
    But if they don't, you can open the XML file in iTunes Folder using a Text edit program to see what the common pathname is to the iTunes Music folder or where your content is located.
    If you moved the itunes folder, it needs to go back.
    I can't  download iTunes to my Vista virtual machine to test it out right now because iTunes is down, so I can't verify the pathname, perhaps your issue and the iTunes being down are related somehow?
    You don't want to import all your music again, but it's a option, but you lose all your playlists, that's what I'm trying to recover.
    If oyu don't have a whole lot of playlists, then simply select all the explaimation point music and delete, select File from the menu and import your itunes folder again.

  • My iPhone 5 randomly shutdown and rebooting doesn't seem to work for me, what should I do?

    It also happens when I'm charging my phone, and also the battery percentage doesn't show that correct battery level not unless I turn off and on.. I tried rebooting the phone but it doesn't seem to work for me, random shutdown still happens..

    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.

  • Forum search doesn't seem to work for Date Range 'ALL'

    Hi there,
    Forum search doesn't seem to work for Date Range option: 'ALL' .
    For a given search criteria, I get few search results when the date range is chosen as 'last year', but for the same search criteria, when the date range is chosen as ALL, no search results are shown (not even the ones shown earlier for last year selection).
    regards,
    AJ

    Can you please delete my few duplicate replies in [CJ20n|Re: Long Text at Activity Level in CJ20N] thread?:-)
    Cheers,
    Amit.

  • Using a jQuery list box placed onto a tab control doesn't seem to work for posting?

    Hello,
    I developed a U.I. in Dreamweaver for a  product and have several list boxes that use the onChange modifier to collect what the user selects from the list. I use the onChange=this.form.submit() function to grab the user's selection from the list box..
    When this dropdown list box code is placed onto a form, it posts properly and I can retrieve the user's list selection.  If however I place the list box code onto a Tab page from a jQuery Tab Control, developed in Dreamweaver, the posting doesn't seem to work.
    I must be missing something because identical code is working fine when the list box code is placed on a form yet when the code is repeated from within a Tab, it isn't working.
    The code is simple, and shown below).  The list values are coming from a MySQL table.
    $MyQuantity_query="SELECT * FROM Quantity_Table";
    $MyQuantity_Result=mysqli_query($cxn,$MyQuantity_query) or Die ("Cannot connect");
    echo"<select name='ThisQuantity[$RowCounter]' value='ThisQuantity[$Rowcounter]' onChange='this.form.submit()'><option value='-1' selected>Qty</option>";
    While($MyQuantity_Row=mysqli_fetch_assoc($MyQuantity_Result))
       extract($MyQuantity_Row);
       echo"<option value='$Qty_Number'>$Qty_Number</option>";
    echo"</select>";
    Any suggestions would be appreciated.  Thanks.
    Joel
    [email protected]

    Thanks you.
    I tried placing the selection list inside of
    tags but posting still doesn’t seem to be working? 
    Regards,
    Joel

  • How do I remove the menu button? The Customize option doesn't seem to work for that.

    How do I remove the menu button? [That IChing looking three line icon on the toolbar.]
    The toolbar Customize option doesn't seem to work, and it seems a waste to have a button that duplicates the menus. I'd like to swap it out for the NoScript icon.

    Hi, ''I can't recommend that you do it'', but If you really are determined, [http://www.tweakguides.com/Firefox_12.html this article] may help.

  • Passing variable from sql to shell script

    Usually we can pass arguments from shell script to the sql that us called inside the shell script. But I also want to do the reverse. I have the location of my backup path in a table. I want to run the rman script (shell), read this parameter from the table and use this to construct the "format" path in rman. Anyone has any ideas about this. Thanks.

    To achieve getting the modified value from the table everytime the job runs, I encapsulated this in another job.
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB(
    JOB_NAME           => 'TEST_LOGS_MAIN',
    JOB_TYPE             => 'PLSQL_BLOCK',
    JOB_ACTION          => 'declare
    v_aname varchar2(32);
    begin
    select aname into v_aname from attr where attrid = 3;
    DBMS_SCHEDULER.CREATE_JOB(
    JOB_NAME        => ''TEST_LOGS'',
    JOB_TYPE        => ''EXECUTABLE'',
    JOB_ACTION      => ''/opt/sql/testy.sh'',
    number_of_arguments => 1,
    COMMENTS        => ''TEST'');
    dbms_scheduler.set_job_argument_value(''TEST_LOGS'',1,v_aname);
    dbms_scheduler.enable(''TEST_LOGS'');
    end;',
    REPEAT_INTERVAL => 'FREQ=MINUTELY',
    ENABLED           => TRUE);
    END;
    /

  • Spam Control doesn't seem to work for 520-336-5675 "Mortgage" Spam Text

    I made a call to Verizon and they can't seem to stop this number from Tuson either. I got the third round of calls in the last few days to three different Family Lines a few minutes ago. Twenty cents doesn't seem like much, but an extra one or two dollars a month mounts up. The message says that they are responding to a request from me, but I don't have a mortgage to re-do!

    Good evening.
    Did you add this number under Spam Control or Call and Message Block?  If you add the Call and Message Block, you will be able to add up to five 10-digit numbers to the block.  This will prevent a number from being able to call or text your phone.  Below I have provided you with the steps to add this block, as well as unwanted numbers.  
    Sign in to "My Verizon" using your [Account Owner] number and do the following: 
    Select  [Safe Guards] tab
    Select [Call & Message Blocking] tab
    Add/ remove numbers
    [Save Changes]
    If you need additional assistance, please send me a Private Message with your 10-digit mobile number.  I will be happy to help you.
    I hope this information is helpful. 
    Thank you,
    VanessaC_vzwsupport
    Follow us on Twitter www.twitter.com/vzwsupport

  • ENET-232/4 doesn't seem to work for some instruments

    I have an ENET-232/4 and it works for some analog-digital interfaces I'm using but doesn't work for other instruments. I tried using a Shimadzu LC2010 with it, it configured OK, but the instrument wouldn't start a run. I tried a Thermo TraceGC and it wouldn't even configure through it. But simple A/D interfaces (PE Nelson boxes, SS420X, etc.) are working fine.
    Are there limitations on the type of instrument that can be run through a ENET-232/4?

    Possibly - if the software is written with hard timings (like it writes a command, waits 10 ms for the reply, then writes a seconds command, etc.) then its going to run into problems communicating over a high latency communication link.
    Sometimes these timings are adjustable - are there any options in the program for adjusting communication timeouts?

  • Euphonix MC Control - doesn't seem to work for me..

    Okay, I've been working with an "Euphonix MC Control" for the day.
    The jog wheel doesn't seem to want to work in FCP - or it's full on.
    The faders don't seem to want to respond to anything at all.
    Nothing seems to be customisable, except for the 'softkeys' - which isn't very interesting to me, as I mainly wanted it for the transport, jogwheel, faders, and knobs.
    Am I missing something?

    It speaks Eucon - which is one of the many competing new control languages there are around. Eucon is a nice idea - uses UDP/TCP packets over ethernet - so it can deal with multiple workstations and so on.
    The server software is called "EuControl' - and is licensed with the hardware only, as far as I can see.
    Yes - I understand what you are saying about volume knobs - but I think that you may be missing my point, which is that I want to be able to assign these faders to arbitrary controls across Mac OS Apps. I can do it with other midi devices - eg with Automap Pro (though Novation hardware doesn't come with mechanized faders - which is annoying).
    Having paid a LOT of money for mechanized faders packeged with supposedly fully customisable server system, it's pretty annoying not to be able to use them outside of FCP and Logic.

  • [Solved] IgnorePkg doesn't seem to work for me, what am I doing wrong?

    I'm trying to prevent "pacman -Syu" from installing the package "xf86-video-ati-6.12.192-1" onto my system and no matter what I try in "IgnorePkg" in pacman.conf it always installs this pkg. I've tried both "xf86-video-ati" and "xf86-video-ati-6.12.192-1" in the "IgnorePkg" but pacman always wants to install this package. If I delete it from /var/cache/pacman/pkg it will still download this pkg and install it.
    What is it that I'm doing wrong?
    Last edited by Gumper (2010-04-20 02:22:06)

    Gumper wrote:
    Doh! I feel so stupid. I just looked at my pacman.conf file once more and noticed the "#" in front of "IgnorePkg". I uncommented it and it works now.
    Thanks for the help!
    I recommend you to mark the thread as Solved, at least less people going to see how much lol you are.
    Last edited by n0dix (2010-04-19 03:27:48)

  • Pass variable from apex to shell script

    Hi,
    i am able to use apex button to run a db scheduler job and use the the job to run an OS bash script, but don't know how to pass an variable to the script from apex.

    Hi,
    Thansk for the reply.
    My scenario is
    1. Apex page 1: Store List Report, click the store you want to process, the selected store id and store name will be passed to apex page 2 automatically.
    2. Apex page 2: Show the store ID and Store Name, once confirm click a button on the screen. I already created dynamic action of the button to run a bash script in OS via dbms_scheduler.
    My issue is i don't know how to get the store id and pass it to the bash script through dbms_scheduler.
    Regards
    Lion

  • Setting text size in Photoshop script doesn't seem to work

    I have written a script and used it for several years to take metadata and place it on a PSD file as a layer as 12 point text.
    This script runs fine on my main desktop computer running Win7 and Photoshop CS 6.
    I moved the script to my laptop running Win 8.1 and Photoshop CC 2014 (latest updates applied).
    When the script hits the line:
    TextRef.size = new UnitValue(12,'pt');
    the "size" value does not change3.  I set a breakpoint and traced the code leading up to the like and the TextRef.size value in the data browser is "2.88px" before and after the line is executed.  The resulting text is placed in the text layer as a 2.88 point font (i.e. "squint-font") rather than the 12 point font desired.
    It is the *exact* script on both computers and runs perfect on one and seems to skip the line of code.  I checked that the Units and Rulers preferences are the same on both systems.
    I am stumped.  Can anyone help point me a further direction to look at this?
    Thank you!
    -Mike

    If finally found references to this problem as something others have found in CC+.  I have tried some of the suggested functions to work around the problem, but I get errors that some of the requested calls are not supported in in this version of PS.  You read more on this thread: Did CC 2014.2 break textItem.size?
    I am going to dust off an old laptop with CS6 on it and use it until this problem is fix in CC.
    Ugh...

  • Sun's demo using enum doesn't seem to work for me

    I'm trying to run a demo from the Sun website, http://java.sun.com/docs/books/tutorial/java/nutsandbolts/switch.html, which includes the enum statement:
    public class SwitchEnumDemo {
        public enum Month { JANUARY, FEBRUARY, MARCH, APRIL,
                            MAY, JUNE, JULY, AUGUST, SEPTEMBER,
                            OCTOBER, NOVEMBER, DECEMBER }
        public static void main(String[] args) {
            Month month = Month.FEBRUARY;
            int year = 2000;
            int numDays = 0;
            switch (month) {
                case JANUARY:
                    // etc etc ...
            System.out.println("Number of Days = " + numDays);
    }However, copying-and-pasting the code into NetBeans, I get an error on the enum declaration stating: '';' expected. Warning: as of release 1.5, 'enum' is a keyword and may not be used as an identifier'. Well... I know that. Isn't that why I'm using it in the first place? Or am I confused?
    I'm using NeBeans 5.0 on Java 1.5.0_06.
    Any advice?
    Question 2: Once I get this thing working, is there any way I can get the month as an input from the user, without needing a long block stating
    if (input = "January") month = Month.JANUARY;
    else if (input = "Feburary") month = Month.FEBURARY;
      //etc etcThat is, can the string representation of a month be somehow kept within the enumerated Month itself, and that be used to check the user's input?
    Thanks for any advice!

    However, copying-and-pasting the code into NetBeans,
    I get an error on the enum declaration stating:
    '';' expected. Warning: as of release 1.5, 'enum'
    is a keyword and may not be used as an
    identifier'. Well... I know that. Isn't
    that why I'm using it in the first place? Or am I
    confused?
    I'm using NeBeans 5.0 on Java 1.5.0_06.I can't say for sure about that; it seems very odd. However, I do know that my IDE will warn me about those sorts of things if I configure my project for pre-1.5 operation. It allows me to say a project is for Java 1.4 even if I'm using a 1.5 JVM and will mention things like that so that forward compatibility can be considered. I don't suppose this could be the case with your situation?
    You might want to search for all instances of "enum" in your code, though, because it's hard to imagine the one instance which appears in the snippet you posted causing problems.
    Question 2: Once I get this thing working, is there
    any way I can get the month as an input from the
    user, without needing a long block stating{snip}
    Well, in this case you can just do
    for (Month m : Month.values())
        if (m.toString().equalsIgnoreCase(input))
            month = m;
            break;
    }or you can build a Map<String,Month> if you're looking for case-sensitive comparison.
    In general, however, you can put pretty much anything into an enum:
    public enum SomeEnum
        A(0),
        B(0),
        C(1),
        D(0),
        E(2);
        private int value;
        SomeEnum(int value)
            this.value = value;
        public int getValue()
            return value;
    // the following is perfectly legal
    SomeEnum e = methodThatReturnsSomeEnum();
    System.out.println(e.getValue());and you could use that to put some form of identifier in the enumeration object. I have a class around here somewhere which uses an enum to enumerate the operators in an expression parser; the Operator enum constructor accepts an int specifying the operator precedence.

Maybe you are looking for

  • Unable to start default server (IntegratedWeblogicServer) in jDev 11.1.1.2

    Hey guys, I am using the new release of jDev 11g (11.1.1.2) when ever i try starting the Default Server, i get the following message: The Server Instance cannot be started because the Integrated Weblogic domain was not built successfully. [09:27:38 A

  • Text item print in report???

    Hi all I have a problem in Report 6i I created a report there is many field and text item there is any possibility that if any field is empty related text item not print just like field. suppose: Text item data Name........:- abc Father Name.:- any p

  • HT1430 No sounds or vibration in my Iphone 4 S

    Hi There is No sound or Vibration in my Iphone 4S at all; I am using IOS 6.0.1, before I had an Intermittent sound and vibration coming for a while then disappearing again but now I don't have any sound since three days ago, would you please inform m

  • Am exporting html table containing images data into pdf and after exporting images are not displaying in pdf document.

    Hi all,          I trying to export html table which contains images into pdf through java script but after downloading pdf file am unable to see images.Is this problem with plugins are any other.Can any one help me out from this. Thanx in advance.

  • Block/Delete Vendors by Company Code wide

    Hi Guru's We have got requirement to block/delete unused vendors in company code wide automatically or thru customised program. We have FK05 and FK06 to block&delete vendors. I triend updating LFB1 table using VENDOR_UPDATE Function module. Below is