How to pass command line parameters in calling ant file

Hi All, I m using a Build file which calls another build file.
That build file is run from the command prompt by give ant -lib <path of jars it needs for executing>.
Now i m calling this file from main build file but it does not work as i m not able to set <b>-lib </b>.
Pls can anybody let me know how to set such command line parameters to call the build file in ant script.
Thanks in Advance.
Ketan.B.Parekh

Create the control file dynamically (and fill one of the columns with the file name as a constant) before you start SQL*Loader
Another option is to use external tables
Re: Data Loading
Message was edited by:
Jens Petersen

Similar Messages

  • How to pass command line parameters During server start up

    Hi,
      I am trying to use Net Beans profiling tool.On the server side i required to pass a command line option to enable remote profiling.
    Regards,
    Kiran.

    Hi, MB.
    If you are talking about the automatic Java Web Start support for launching app clients in GlassFish, you can pass the equivalent of command line arguments using the query string of the URL you use to launch the app client.
    Briefly, use
    http://host:port/client-path?arg=first-arg&arg=second-arg& ...
    specifying the argument values in the order that you want them passed to the client.
    The GlassFish server will do the right thing and generates the correct JNLP so your arguments are passed to the app client.
    The GlassFish developer's guide http://glassfish.dev.java.net/nonav/javaee5/docs/AS91DG.pdf discusses this and all aspects of the Java Web Start support. You can also take a look at this blog entry http://blogs.sun.com/quinn/entry/command_line_arguments_and_properties that focuses on how to pass arguments.
    Since this technique deals with argument passing in the URL, it works no matter how you launch the app client: a URL in a browser, the javaws command, etc.
    - Tim

  • BSM / audit_syslog ... how to get command line parameters in syslog?

    Hi All!
    I have been experimenting with Sun Basic Security Module (BSM) and was trying to send audit data via syslog to a central logging server like so:
    # cat /etc/security/audit_startup
    /usr/sbin/auditconfig -setpolicy +argv,arge
    # cat /etc/security/audit_control
    plugin: name=audit_syslog.so;p_flags=lo,ex,fr,fc,fd,fw,fmThis does produce the desired log output on the central logging server, except that the log lines do not contain command line parameters / environment variables:
    2008-10-14T15:04:26-06:00 csadm4/csadm4 audit: [ID 702911 audit.notice] execve(2) ok session 1576737601 by rem_adm as root:root in csadm4 from csadm1-16.shell.ca obj /usr/bin/lessAs this makes it pretty useless for keeping proper audit records (there is a difference between
    rm ~/file and
    rm /file that I would like to see) I was wondering if there is a way to customize what is actually produced by audit_syslog.so?
    Thanks in advance,
    Rudolf

    No, your plugin doesn't get any access to the command line.  Look for other methods of IAC (COM, DDE, shared memory, shared file, etc.)

  • How to pass command line arguments to JWS app

    Hi,
    I want to pass command line arguments to my JWS application. However those arguments are dynamic (eg the username of the user who launched the app) and thus I can not use the argument tag of JNLP file. So what do I need to do in this case?
    Thanks.

    Well, if it's the username on your server systems you should probably include it in the jnlp: can pass it in the url, write once and remove jnlp href attribute, etc.., etc.. (a quick tour of this forum should suffice).
    If it's the OS username you should be able to retrieve it through system properties.
    Whatever it is, passing dynamic arguments means launching javaws through a shell or a shell script (bat if running on windows), so you won't be able to launch through autogenerated desktop and menu shortcuts.
    Anyway, you have two solutions:
    Clean one: associate an extension to your app and write those infos in a file named after that extension.
    Dirty one (always seen it work, but there's no warranty): javaws -open whateverParamYouLike yourAppURL.jnlp, will pass to your main method '-open' as args[0] and '+whateverParamYouLike+' as args[1]. I gotta admin I used it, but I had the most peculiar reason (my app needed another instance on a different JRE aware of being a secondary instance at startup time).
    Bye.
    PS: I'd really love dukes ;-)

  • How to Pass Command line arguments to an exe created in LV8.0

    Hi Friends,
    I have Created an exe in LV8.0, which accepts the Folder path as input and executes.
    I want to call this exe passing the parameter (i.e folder path in my case)  from the command line argument. How to pass arguments to the exe ?
    Generally we may be having different types of input parameters to a vi like numeric control, string, boolean etc..If we create an exe that needs three input parameters among which one is boolean, other is string and third is a numeric value.
    How to pass these different types of input controls to the exe as parameters in command line at the same time?
    Thanks and Regards,
    SODLB

    I don't have any experience with the 8.x application builder, but the 7.x one has a checkbox for passing the arguments to the executable.
    As for reading them, there should be an example in the example finder (Help>>Find Examples) which shows how to do this. If you want to pass multiple parameters, I suggest you use a structure similar to NAME=VALUE, so that you can parse each element to find the = and then use a case structure to decide what to do with the parameters. This allows your users to enter or not enter any of the switches.
    Try to take over the world!

  • How to pass command line arguments to Web Start appclient?

    Hi,
    I would like to pass arguments to appclient, but "javaws" unable to do that.
    Do I have to overwrite the JNLP? I use Sun Appserver 9.0, it creates JNLP on the fly!!!
    Please help, thanx!
    MB

    Hi, MB.
    If you are talking about the automatic Java Web Start support for launching app clients in GlassFish, you can pass the equivalent of command line arguments using the query string of the URL you use to launch the app client.
    Briefly, use
    http://host:port/client-path?arg=first-arg&arg=second-arg& ...
    specifying the argument values in the order that you want them passed to the client.
    The GlassFish server will do the right thing and generates the correct JNLP so your arguments are passed to the app client.
    The GlassFish developer's guide http://glassfish.dev.java.net/nonav/javaee5/docs/AS91DG.pdf discusses this and all aspects of the Java Web Start support. You can also take a look at this blog entry http://blogs.sun.com/quinn/entry/command_line_arguments_and_properties that focuses on how to pass arguments.
    Since this technique deals with argument passing in the URL, it works no matter how you launch the app client: a URL in a browser, the javaws command, etc.
    - Tim

  • How to pass command-line options to app using the "open" command?

    I am using jedit, and since I'm doing a lot of stuff in a shell, I'd really like to launch it from the command line as though I'd opened from finder, so I wrote a script that contains this:
    open -a /Applications/Jedit.app "$@" &
    This works well for everything except NEW files, where I get this error:
    2007-02-16 19:29:48.072 open[1032] No such file: /Users/millerti/projects/ateon/new_file
    Is there a way I can override this?
    So, it occurred to me that I might try running jedit directly this way:
    /Applications/Jedit.app/Contents/MacOS/jedit -- "$@" &
    The trouble is that this suffers all sorts of weird problems. For instance, if there's already a jedit running, it launches another one (despite the fact that -server is default). Moreover, the file it opens, existing or not, is not the one I specify. If I'm in ~/mydir and I open ./myfile, jedit opens instead /Applications/myfile.
    Obviously, I'm doing something wrong. Can someone help me figure out what open is doing internally so that I can launch jedit compatible with how open does it so that I can both open existing files and create new ones the same way from the command line?
    BTW, I can make more complex script.
    Also, if this isn't the right forum for this, can someone tell me where would be a better place to get the question answered?
    And I'm not expecting to get jedit support here. This isn't a jedit problem because it's behaving correctly.
    Thanks.

    Applications rarely take command line arguments. I don't know anything about Jedit, whether that is an exception, but you are not sending an argument to Jedit with the open command. The file name on your command line is an argument to the open command. The open command says "open this file with the specified application". The application doesn't see the argument. It sees the file exactly as if it were opened from the Finder. That's why naming a non-existent file doesn't work.
    What if you open Jedit with no file, create a new document in the application. (Again, I am not familiar with Jedit.)

  • Passing command line parameters to flash .EXE (AS2)

    Hi,
    I currently have a bunch of Flash clips in .swf that get variables passed from Javascript on a remotely hosted web server. They need those variables to work.
    I'm trying to create a local version using those same Flash clips, compiled into .EXEs instead of .SWF files so people who do not have flash installed can run them as well.
    I'm trying to write a loader application that will take care of logging people in to their web accounts and launching the flash .EXEs. But I need to pass the EXEs the same variables I used to pass them via javascript. Is there a command line way to pass variables into the flash .EXE so they are useable with AS2 (via _root or otherwise...)?
    I haven't been able to find an answer anywhere...
    Thanks,
    Imperio

    Hi Yves,
    I tried what you mentioned
    Here's what I have added to the ANT file:
    <fx:application id="Hello">
    </fx:application>
    <fx:jvmuserarg name="-Dhelloproperty=" value="32"/>
    Here's what I added in registry inder:
    HKEY_CURRENT_USER\Software\JavaSoft\Prefs\Hello\/J/V/M/User/Options
    value name = '-/Dhelloproperty='
    value data ='abcd'
    The value from the registry never gets printed.
    This is what I get when I print the value via sysout (so registry value is not used)
    -Dhelloproperty=32
    -Dapp.preferences.id=Hello   
    Here`s the method to print the params:
    private static void runtimeParameters() {
              RuntimeMXBean bean = ManagementFactory.getRuntimeMXBean();
              List<String> aList = bean.getInputArguments();
              for (String s:aList) {
                System.out.println( s );
    Can you please provide me with your example if possible.
    My OS is Win 7 Pro 32 bits, what`s yours?
    Thanks,
    Carl

  • How to pass command line options?

    I know that command line options contrary to command line data arguments start with a prefix that uniquely identifies them.
    I write an application that will copy files from one folder to another. It should be launched with the syntax as follows:
    c:>java my.app.DirectoryScannerConsole
    c:>scan ?input ?C:/test/in? ?output ?C:/test/out? ?mask ?*test*.xml? ?waitInterval 60000 ? includeSubfolders false ?autoDelete true
    c:>exitSo after launching we have two commands: 'scan' and 'exit'. What should I make in my program to be able to invoke these commands in such a manner?
    Edited by: Exaserge on Nov 8, 2008 10:38 AM
    Edited by: Exaserge on Nov 8, 2008 10:40 AM

    Maybe try using Scanner to read in the line of input, then break the line into an String array, then comparing the Strings in the array.
    Something like...
    public static void main(String args[])
       Scanner in = new Scanner(System.in);
       String line = in.readLine(); //read in an entire line of input
       String words[] = line.split(" "); //split that line wherever there is a space
       while ( !(words[0].equals("exit")) ) //if they haven't typed in exit
          if (words[0].equals("scan")
              if(words[1].equals("-input"))
                 String inputFile = words[2]
              //etc.
          line = in.readLine();
          words = line.split(" ");
    }I haven't tried to compile it or anything, so it may not be syntactically correct, but you should get the idea.
    Edited by: chickenmeister on Nov 8, 2008 1:02 AM

  • How to refer the SQL*Loader command line parameters in the control file

    The problem I am trying to resolve is to insert the input file name when SQL*Loader is loading the record from the file. I have multiple files to load and it is nice to associate a record with a particular input file.

    Create the control file dynamically (and fill one of the columns with the file name as a constant) before you start SQL*Loader
    Another option is to use external tables
    Re: Data Loading
    Message was edited by:
    Jens Petersen

  • Command line parameters for OMBPlus?

    Hi,
    Is it possible to pass command line parameters to TCL scripts running in OMBPlus.sh, and if so, can someone provide an example?
    I'm able to use the argv0 variable to get the script name itself but not sure how to get any other additional parms...
    Thanks,
    Jim

    Jim,
    If you are building command-line scripts to automate OMB+ commands, there is another factor you should be aware of. If your script errors out cleanly, the OMBPlus.sh does NOT pass this back to the shell. The return code is evaluated within OMBPlus as the return from a "source" command and then OMBPlus exits normally.
    For example:
    #file test.tcl
    return -code error
    Unix/shell> OMBPlus.sh test.tcl
    Unix/shell> echo $?
    0What I do to pass an error state back to the shell is to create a flag file in my script if exiting due to error. My shell script deletes this file prior to running the script and then tests for it after the run as part of the conditional logic
    Function in tcl file:
    #Get location where this script installed
    #This variable is set at the top of the script.
    set theScriptDir  [ file dirname [info script]]
    #If we want to bail in the script at any point we call exit_failure with an appropriate error message
    proc exit_failure { msg } {
       global theScriptDir 
       set ERRFLAGFILE "$theScriptDir/ers_owb_import.error"
    #rollback any uncommitted work
       OMBROLLBACK
    #Log the error and exit
       set fout [open "$ERRFLAGFILE" a+]     
       puts $fout "Error:-> $msg"
       close $fout
       # return and also bail from calling function
       return -code error
    }And my shell script does something like:
    cd ${JOB_DIR}
    rm -f ers_owb_import.error 2>/dev/null
    echo \\nBegining Uninstall of OWB Project
    ./OMBPlus.sh ${JOB_DIR}/my_tcl_Script.tcl
    if [ -f ${JOB_DIR}/ers_owb_import.error ] ; then
          echo \\nERROR - SCRIPT FAILED
    else
         echo \\nScript Succeeded.
         # script logic continues....
    fiCheers,
    Mike

  • How to pass a command line argument to a jsp file...

    Hi guys,
    I'm writing a jsp file in which I have some java codes. I want to pass some command line arguments to that jsp file. In other words, I have some files located somewhere on my C drive and I want to pass the path to these files to my jsp file. How can it be done? I have never done before.
    Any suggestion will be very hepful...
    Thanks....

    I dont know if I truly understand your problem...
    For instance, when you place the url of your jsp you can add, at the end some parameters. For example:
    http://myserver/myapp/myjsp.jsp?MyParameter=C:\Temp\JavaTutorial.html
    In your JSP, you can place this code on a scriplet to get the value:
    String path = request.getParameter("MyParameter");
    Hope it helps.

  • How to get ALL command line parameters

    Hi,
    Is there possibility to get all command line parameters which
    Flex builder invokes when I press RUN button ?
    I am asking because I want to create mxmlc ant task with the
    same parameters as Flex builder.
    I wrote something like that below but I have a problem with
    invoking remote function, it seems that poduced SWF inf flex
    builder an my script (below) arent the same - and mayby have some
    security differences.
    Any Ideas how to get all compiler argumets from flex builder
    quote:
    <mxmlc
    file="${flex.src}\main.mxml"
    output="${flex.output}\main.swf"
    services="${path.tomcat.root.WEB}/flex/services-config.xml"
    context-root="${path.tomcat.root}"
    use-network="true"
    keep-generated-actionscript="false"
    debug="false"
    locale="en_US"
    incremental="true"
    >
    <!--load-externs="${LOADEXTERNS}"
    link-report="link-report.xml" -->
    <load-config
    filename="${FLEX_HOME}\frameworks\flex-config.xml"/>
    <source-path path-element="${FLEX_HOME}\frameworks"/>
    <compiler.source-path path-element="${flex.src}"/>
    <compiler.library-path dir="${FLEX_HOME}\frameworks"
    append="true">
    <include name="libs" />
    <include name="../bundles/{locale}" />
    </compiler.library-path>
    </mxmlc>

    Hi,
    Try -dump-config compiler argument, which will write all the
    currently set configuration values. Please find more details at the
    URL below.
    http://www.quilix.com/node/9
    Hope this helps.

  • Command line parameters and resuming

    Hi,
    I am researching for a client who wishes to have several students (K-12) using Adobe Captivate course on the same computer. Another constraint is that a course is run from DVD (1+ GB in size) so it's published as standalone application (.exe for Windows, .app for Mac). Quick questions:
    Can a course have an action to parse command line parameters? I haven't found that.
    Explanation: this would be used to simply parse a name and e-mail address (if possible) and last module passed to a course player. Resuming could be disabled (there is an answer how to do that in the forum) or overridden but the learner should be transferred to a slide to resume based on the calling parameter (and not the default resuming - there will be several users so each must resume from the last passed module slide).
    Can a progress of the current learner using the course be saved to a database (no LMS, e-mail, Acrobat.com etc)?
    Explanation: this is needed for the current learner and for each one separately. I guess I already have a solution in mind (custom application, having small internal web server like Mongoose, with a script that replaces internalServerReporting.php and saves the data to a internal database, SQLite). But for this to work spawning a course with command line parameters and course itself reading these parameters would need to work.
    If there is a (better) solution for the above, please reply. The goal is have minimal changes on the course e.g. if there are command line parameters, then parse them and do something (mark modules passed, open appropriate next slide). If parameters are not given/recognized, do nothing (so the course would still work on computers used by one learner only, including resuming etc).
    My opinion is that this should also be one-way as much as possible. E.g. additional application handles user name, e-mail and current progress and spawns Captivate course. The published course itself should not depend on the application like reading progress from a text file (though an URL call could return current progress from an application for the same user name). So ideally only changes to use internal server publishing to save current progress and adding a logic to check parameters at start would be applied to a course.
    Waiting for your smart answers.
    Matt

    DVDs, when finalized, are read-only... so unless you are considering to do an Install of the course from the DVD to the machine, you're not going to be able to write to a database.  A USB stick may be more suitable in this situation.
    Command line params are not possible with EXEs unless you create your own EXE wrapper.  If you're going to go through that trouble, you'd be better off creating an Adobe Air application that can run your local web content without security restrictions and use SQLite or some other backend to store the data.
    Can the progress be saved?  It depends what you mean by progress.  If you just want to allow the student to resume from the slide where they left off... you can do that with a bit of JavaScript.  However, if you want to ensure that any previous questions answered on a quiz were also resumed and intact from the previous session... not possible without an LMS.
    Why not run a Moodle installation via a USB stick and you can have a full featured LMS with a database and ability to resume a previous session?
    http://docs.moodle.org/19/en/Installation_guide_-_Moodle_for_Windows_on_a_USB_Memory_Stick
    Just some things to consider...

  • Command line parameters for al_engine.exe

    If you go to a command line window on a DS server and type al_engine.exe with no parameters it prints "Usage" information.  Some of the parameters it mentions are known to the community (like -XX, -XI, etc).  However there are some which sound pretty interesting, but I can't find any information or examples how it should be used.  Examples:
    -L<list of value> : List of Object Labels from UI (separated by , or ; or space) to filter.
    -Je<XML file> Execute the Installation scenario defined in XML file.
    -jd"datastore delta file in quotes>" : Modify datastore values using "file"
    -Jf, -Ja, -We,  and many more.
    I am particularily interested in -Je functiohnality - it sounds like it can be used to automate deployment.  I am using import/export options to do some automation, but real automation would include deletion of some objects, adding jobs to projects, etc.
    Can anybody help with the documentation/examples?

    The preferred way is to save your workflow as an application and then call usr/bin/open on it. If for some reason you must have the workflow run inside of Automator (not self-contained) then you're looking at some quality time with man osascript. As it happens Apple has removed even the need for Cron for most users. A click to File -> Save As Plug-In -> for iCal handles it from start to finish.
    Edit: I forgot to mention that Automator has its own simple command line utility for running *.workflow files. Check out man automator

Maybe you are looking for