ANT: optional tasks?

How can I make ANT to support optional tasks (a task which typically requires an external library)?
Documentation says:
"If you want to develop extensions to Ant via the Apache Ant API within JDeveloper, see the Extension Manager page in Tools | Preferences - Extension Manager and the Apache Ant API documentation."
I'd love to simply dump the external library (eg junit.jar) in a lib/ext/ant folder...

I find it unfortunate that "add this to the project classpath" has become the de-facto standard solution to class finding and loading issues. Optional JARs contain ANT-specific support classes, and have nothing to do with the project code itself, so why pollute the project's classpath with those libraries?
Like OC4J, ANT should have its own dedicated and customizable classpath, which should initially be cleaned of anything it doesn't need, especially the project's output path. ANT has an IDE-independent way to handle paths. If I want my project's output path to be part of ANT's classpath, then that should be my choice, not JDeveloper's!
If you are in need of inspiration, take a look at Eclipse's ANT integration... no offense intended!

Similar Messages

  • Ant optional ftp task

    I've been trying to get the optional ftp task for a few days with no luck. I believe I have placed my jar files in the correct place (they show up) but it still says ftp is unavailable. Is there some other step I'm missing? Maybe one of you guys can quickly tell me what's wrong with my set up. Here it the output from ant -diagnostics
    ------- Ant diagnostics report -------
    Apache Ant version 1.6.5 compiled on August 30 2006
    Implementation Version (JDK1.2+ only)
    core tasks : 1.6.5
    optional tasks : 1.6.5
    ANT_HOME/lib jar listing
    ant.home: /usr/share/ant
    commons-net-1.4.1.jar (180792 bytes)
    jakarta-oro-2.0.8.jar (65261 bytes)
    Tasks availability
    image : Not Available
    wlrun : Not Available
    ddcreator : Not Available
    vajload : Not Available
    rexec : Not Available
    wlstop : Not Available
    ftp : Not Available
    netrexxc : Not Available
    starteam : Not Available
    stcheckin : Not Available
    stylebook : Not Available
    script : Not Available
    splash : Not Available
    stlabel : Not Available
    vajexport : Not Available
    stcheckout : Not Available
    ejbc : Not Available
    telnet : Not Available
    vajimport : Not Available
    stlist : Not Available
    sound : Not Available
    scriptdef : Not Available
    icontract : Not Available
    org.apache.env.Which diagnostics
    Not available.
    Download it at http://xml.apache.org/commons/
    XML Parser information
    XML Parser : org.apache.xerces.jaxp.SAXParserImpl
    XML Parser Location: /usr/share/java/jaxp_parser_impl.jar
    System properties
    ant.library.dir : /usr/share/ant/lib
    path.separator : :
    java.vm.name : GNU libgcj
    java.vm.specification.name : Java(tm) Virtual Machine Specification
    java.runtime.version : 1.4.2
    java.home : /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
    java.vm.specification.version : 1.0
    line.separator :
    java.vm.specification.vendor : Sun Microsystems Inc.
    gnu.classpath.home.url : file:///usr/lib
    gnu.classpath.version : 0.92
    gnu.gcj.progname : org.apache.tools.ant.launch.Launcher
    java.specification.version : 1.4
    java.library.path : /usr/lib/gcj-4.1.1
    gnu.classpath.vm.shortname : libgcj
    java.class.version : 48.0
    java.specification.name : Java(tm) Platform API Specification
    os.version : 2.6.18-1.2798.fc6
    gnu.classpath.home : /usr
    user.home : /home/odin
    file.encoding : UTF-8
    ant.home : /usr/share/ant
    os.name : Linux
    user.name : odin
    java.class.path : /usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/antlr.jar:/usr/share/java/ant/ant-antlr.jar:/usr/share/java/bcel.jar:/usr/share/java/ant/ant-apache-bcel.jar:/usr/share/java/log4j.jar:/usr/share/java/ant/ant-apache-log4j.jar:/usr/share/java/oro.jar:/usr/share/java/ant/ant-apache-oro.jar:/usr/share/java/regexp.jar:/usr/share/java/ant/ant-apache-regexp.jar:/usr/share/java/xml-commons-resolver.jar:/usr/share/java/ant/ant-apache-resolver.jar:/usr/share/java/jakarta-commons-logging.jar:/usr/share/java/ant/ant-commons-logging.jar:/usr/share/java/javamail.jar:/usr/share/java/jaf.jar:/usr/share/java/ant/ant-javamail.jar:/usr/share/java/jdepend.jar:/usr/share/java/ant/ant-jdepend.jar:/usr/share/java/jsch.jar:/usr/share/java/ant/ant-jsch.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ant-nodeps.jar:/usr/share/java/ant/ant-swing.jar:/usr/share/java/jaxp_transform_impl.jar:/usr/share/java/ant/ant-trax.jar:/usr/lib/jvm/java/lib/tools.jar:/usr/share/ant/lib/commons-net-1.4.1.jar:/usr/share/ant/lib/jakarta-oro-2.0.8.jar
    java.io.tmpdir : /tmp
    os.arch : i386
    java.fullversion : GNU libgcj 4.1.1 20061011 (Red Hat 4.1.1-30)
    user.language : en
    java.specification.vendor : Sun Microsystems Inc.
    user.dir : /home/odin/workspace/CRI
    java.vm.info : GNU libgcj 4.1.1 20061011 (Red Hat 4.1.1-30)
    java.version : 1.4.2
    java.ext.dirs : /usr/share/java/ext
    gnu.gcj.user.realname : odin
    sun.boot.class.path : /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/rt.jar
    java.vendor : Free Software Foundation, Inc.
    java.vendor.url : http://gcc.gnu.org/java/
    java.vm.vendor : Free Software Foundation, Inc.
    file.separator : /
    java.vm.version : 4.1.1 20061011 (Red Hat 4.1.1-30)
    http.agent : gnu-classpath/0.92 (libgcj/4.1.1 20061011 (Red Hat 4.1.1-30))
    gnu.cpu.endian : little
    gnu.gcj.precompiled.db.path : /usr/lib/gcj-4.1.1/classmap.db
    user.region : US
    gnu.gcj.runtime.endorsed.dirs : /usr/share/java/gcj-endorsed

    org.apache.env.Which diagnostics
    Not available.
    Download it at http://xml.apache.org/commons/
    Does this mean something?

  • Use of Separated Variable in Optional Tasks- Null Pointer Exception

    Hi,
    I'm facing a strange issue with Object Category as 'Separated'. In our Process the main object(objLaunch) is big in size so we have decided to make object category to be separated. Process flow's each and every interactive activity has an optional task which is a Screen Flow. When we have changed the object(objLaunch) category to be 'Separated' we are getting below error when we had accessed the optional task. Please note that we are facing this issue in
    PROD environment where as in studio we are not facing this issue. The same object is present in the main process flow as well as in the screenflow(optional task). This object is passed as an input argument to the screenflow from the main process. In the screenflow as well as the main process, we have made the object as separated, though in the screenflow, upon saving and reopening the category still displays as Normal.
    Task failed. Caused by: Task '1' in activity '/SNIAuthorization#Default-1.0/Interactive[ConfirmLAZApproval]' for instance '/SNIAuthorization#Default-1.0/33774/0' could not be successfully executed. The task failed while executing method 'confirmLAZApprovalViewPEDIN'. Caused by: The task could not be successfully executed. Reason: 'java.lang.NullPointerException'. Caused by: java.lang.NullPointerException fuego.web.exception.WapiTaskFailedException: Task failed. at fuego.web.exception.WapiExceptionFactory.create(WapiExceptionFactory.java:209) at fuego.web.papi.DefaultErrorHandler.handleException(DefaultErrorHandler.java:49) at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:127) at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117) at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:228) at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Caused by: fuego.papi.exception.TaskFailedException: Task '1' in activity '/SNIAuthorization#Default-1.0/Interactive[ConfirmLAZApproval]' for instance '/SNIAuthorization#Default-1.0/33774/0' could not be successfully executed. The task failed while executing method 'confirmLAZApprovalViewPEDIN'. at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252) at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_923_WLStub.runTask(Unknown Source) at fuego.papi.impl.j2ee.EJBProcessControlInterfaceWrapper.runTask(EJBProcessControlInterfaceWrapper.java:2169) at sun.reflect.GeneratedMethodAccessor776.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:72) at fuego.papi.impl.j2ee.EJBProcessControlHandler.doInvoke(EJBProcessControlHandler.java:116) at fuego.papi.impl.j2ee.EJBProcessControlHandler.invoke(EJBProcessControlHandler.java:70) at $Proxy145.runTask(Unknown Source) at sun.reflect.GeneratedMethodAccessor775.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410) at fuego.lang.JavaObject.invoke(JavaObject.java:227) at fuego.papi.impl.j2ee.EJBExecution.next(EJBExecution.java:189) at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:177) at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54) at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223) at fuego.web.papi.TaskExecutor.runInstanceTask(TaskExecutor.java:490) at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:98) ... 25 more Caused by: fuego.lang.ComponentExecutionException: The task could not be successfully executed. Reason: 'java.lang.NullPointerException'. at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1000) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1175) at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:428) at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:430) at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:554) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:738) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:698) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:178) at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:489) at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:442) at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:100) at fuego.server.AbstractProcessBean$45.execute(AbstractProcessBean.java:2961) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:2965) at fuego.ejbengine.EJBProcessControlAdapter.runTask(EJBProcessControlAdapter.java:1144) at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl.runTask(EJBProcessControl_1zamnl_EOImpl.java:3019) at fuego.ejbengine.EJBProcessControl_1zamnl_EOImpl_WLSkel.invoke(Unknown Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174) ... 47 more Caused by: java.lang.NullPointerException at xobject.Fuego__AutoGen__Screenflows__.__ViewPED.automatic(__ViewPED.xcdl:9) at xobject.Fuego__AutoGen__Screenflows__.__ViewPED.Automatic_Invocator(__ViewPED.xcdl:7) at xobject.Fuego__AutoGen__Screenflows__.__ViewPED.Begin_Router(__ViewPED.xcdl:6) at xobject.Fuego__AutoGen__Screenflows__.__ViewPED.Begin_Invocator(__ViewPED.xcdl:10) at PG.SNIAuthorization.Default_1_0.Instance.CIL_confirmLAZApprovalViewPEDIN(Instance.xcdl:3) at PG.SNIAuthorization.Default_1_0.Instance.CIL_confirmLAZApprovalViewPEDIN(Instance.xcdl) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:991) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1175) at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:428) at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:430) at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:554) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:738) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:698) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:178) at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:489) at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:442) at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:100) at fuego.server.AbstractProcessBean$45.execute(AbstractProcessBean.java:2961) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:2965) at fuego.ejbengine.EJBProcessControlAdapter.runTask(EJBProcessControlAdapter.java:1144)
    Is it not possible to use separated variables in screenflows which will be accessed as optional tasks? The same screenflow forms part of the main process as well. This activity works fine even after the object was made separated. The error is encountered only in the optional task.
    Please could you analyze the mentioned issue and let us know the reason for the error.
    Anticipating for your response.
    Thanks in advance
    ~Kavitha A

    Please could you respond.
    Regards
    ~Kavitha A
    Edited by: user10230886 on Dec 1, 2009 10:29 PM

  • Jvmargs not being placed in jnlp file by ant deploy task

    Hi
    I have an ant deploy task as given below. I run ant to produce the jnlp file. Everything works ok, EXCEPT the jvmargs, and the enclosing platform element, are not copied into the jnlp file.
    Is this the intended behaviour?
    thanks
    graham
    -- ant task ---
    <project name="BuildInfoView" xmlns:fx="javafx:com.sun.javafx.tools.ant">
    <taskdef
         resource="com/sun/javafx/tools/ant/antlib.xml"
         uri="javafx:com.sun.javafx.tools.ant"
         classpath="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/lib/ant-javafx.jar"/>
    <fx:deploy
    outdir="../installation/bin"
         outfile="infoview"
    width="800"
         height="500"
         embeddedWidth="100%"
         embeddedHeight="100%">
         <fx:application
              name="Infoview"
              mainClass="com.ods.infoview.Main">
         </fx:application>
         <fx:info
              title="InfoView"
              description="InfoView"
              vendor="OrangeDog">
         </fx:info>
         <fx:permissions elevated="true"/>
         <fx:platform javafx="2.2+">
         <fx:jvmarg value="-Xmx400"/>
         </fx:platform>
    <!--
    cacheCertificates="true"/>
    -->
         <fx:resources>
              <fx:fileset dir="../gradle/output/"/>
         </fx:resources>
    </fx:deploy>
    </project>

    There is a FAQ note about this
    http://java.sun.com/products/javawebstart/faq.html#72
    Bill

  • How to call imported ant target/task in Java

    Hi,
    Can anybody advice me how to call an ant target/task, which is
    "<import/>"ed from another build file, from within Java code?
    Here's my Java code:
    import org.apache.tools.ant.*;
    import java.io.*;
    import java.util.*;
    public class MyTest
    private Project project;
    public void init(String buildFile, String baseDir) throws
    Exception
    project = new Project();
    try { project.init(); }
    catch (BuildException e)
    { throw new Exception("The default task list could not be
    loaded."
    // Set the base directory. If none is given, "." is used.
    if (_baseDir == null) _baseDir=new String(".");
    try { project.setBasedir(_baseDir); }
    catch (BuildException e)
    { throw new Exception("The given basedir doesn't exist, or
    isn't a directory."); }
    if (_buildFile == null) _buildFile=new String("a.xml");
    try { ProjectHelper.getProjectHelper().parse(project, new
    File(_buildFile)); }
    catch (BuildException e)
    { throw new Exception("Configuration file "+_buildFile+" is
    invalid, or cannot be read."); }
    public void runTarget(String _target) throws Exception
    // Test if the project exists
    if (project == null) throw new Exception("No target can be
    launched because the project has not been initialized. Please call the
    'init' method first !");
    // If no target is specified, run the default one.
    if (_target == null) _target = project.getDefaultTarget();
    // Run the target
    try { project.executeTarget(_target); }
    catch (Exception e)
    { throw new Exception(e.getMessage()); }
    public static void main(String args[])
    try{
    MyTest mytest=new MyTest();
    mytest.init("c.xml",".");
    mytest.runTarget(null);
    }catch(Exception e)
    e.printStackTrace();
    Here are my build files: (they look almost the same. But it's only to see if <import> works.)
    1.c.xml:
    <project basedir="." default="runtests" name="TestC">
    <import file="a.xml"/>
    </project>
    2. a.xml:
    <project basedir="." default="runtests" name="TestA">
    <target name="runtests" depends="">
    <mkdir dir="ttt"/>
    </target>
    </project>
    If I directly set build file "a.xml" in MyTest.java, everthing works
    well. However, if set "c.xml" then do task "<mkdir dir="ttt"/>" defined
    in "a.xml" which was imported by "c.xml", when running, I got an
    exception. Looks like it can't parse my c.xml which include "import".
    BTW, I'm using ant 1.6.2, and running "ant -f c.xml" was ok.
    Did I miss any classpath or something? Any idea?
    Thanks,
    Amy

    I have a standard Ant build script for signing a jar file. I import it into my master Ant build files with
    <import file="Sign.xml"/>
    and then in my master Ant script I setup the name of the jar file e.g.
    <property name="jar-file" value="${fun}/FunApplet.jar"/>
    and then invoke a target
    <target name="sign-jar" depends="jar, sign">
    </target>
    Since this target (sign-jar) depends on target 'jar' and target 'sign' it executes the 'jar' target and then the 'sign' target that is contained in Sign.xml.

  • Optional Task in Interactive Activity usage?

    Hi Gurus,
    BPM version : 10.3.2
    You will be appreciated if some could explain about the optional tasks in the Interactive activity? and how can I execute the same using PAPI?
    Thanks in advance.
    -Narasimha

    Hi Ritu,
    I'm guessing you might have logic inside your Interactive activity that looks like this:
    input "Enter the customer id: " : customerName
        using title = "Customer Information",
              buttons = ["Ok", "Cancel"]
        returning selectedButton = selectionAlthough I find "input" and "display" statements useful for initial prototyping and some testing, don't take it beyond that. The problem with these statements is that they tie up a thread as long as someone has the input or displayed dialog up. Quickly you'll run out of threads as people march off to lunch with these dialogs left up on their screens. Instead use Screenflows with either JSPs or BPM Object presentations to render information to end users.
    In direct answer to your question though, if you're using the input statement (again - don't do this in production) be sure to handle the variable that contains the value of the button clicked. The above logic would be changed to the logic shown below to handle the Cancel button being clicked:
    selectedButton as String
    input "Enter the customer id: " : customerName
        using title = "Customer Information",
              buttons = ["Ok", "Cancel"]
        returning selectedButton = selection
    if selectedButton = "Cancel" then
       // action is a predefined variable that is an enumeration used in this case to cancel the user's input
       action = CANCEL
    endHope this helps,
    Dan

  • Optional task

    What is the optional task?
    If I set the implementation of an interactive activity as external and create a prepare and a commit method, can set the optional task as external as well as create its prepare and commit method?
    In the papi, how to indentified the different commit or prepare method?
    Thanks in advance

    org.apache.env.Which diagnostics
    Not available.
    Download it at http://xml.apache.org/commons/
    Does this mean something?

  • Required the examples or explanation on "Optional Task" functionality

    Hi,
    I need to explore the importance and main functionality on “optional task”.
    [This option is available @ right click of any Interactive Activity]
    Please provide me any one have examples/case studies on the same.
    Best Regards,
    Ratna Prasad.

    Hi Madhavi,
    Welcome to SDN!!!!!
    The report RPLICO10 is the repport about Flexible Employee Data and related to HR Module. This report is a standard one about administation in HCM Module.
    Thanks,
    Vinay

  • JDK based Pack200 works but not Ant Pack200 Tasks

    Hi,
    In My project, I was earlier using JDK Toolkit based Pack200 Utility and It was working fine for me. As each time user has to set JDK Bin path (C:\Program Files\Java\jdk1.6.0_02\bin) in System variables to run batch file so I switched to Ant based tasks through (https://java-pack200-ant-task.dev.java.net/ ) for Pack200 but it does not work fine.
    I came across Following Issues.
    #1. I have around 60 Jar files which earlier I was Repacking / packing through Batch file with Jdk based Pack200 support and it worked fine
    Repack:
    pack200 repack segment-limit=-1 %(JarFileLocation)\(FileName)
    Pack:
    pack200 --segment-limit=-1 %(JarFileLocation)\ FileName.pack.gz %(JarFileLocation)\(FileName)
    #2. Now I switched to Ant Based Pack200 tasks and used following targets. Repacking goes fine but
    At time of Packing, I am getting Exception. �java.lang.SecurityException: SHA digest error�.
    I experimented with adding some of Attributes like Effort=1 or 0 but it does not work.
    There is no difference what I was doing earlier with Jdk based Pack200 and now with Ant based
    Pack200 tasks then why I am getting Exception and how it can be eliminated?
    <target name="p200">
    <taskdef name="pack200"
    classname="com.sun.tools.apache.ant.pack200.Pack200Task"
    classpath="${library}/Pack200Task.jar"/>
    <taskdef name="unpack200"
    classname="com.sun.tools.apache.ant.pack200.Unpack200Task"
    classpath="${library}/Pack200Task.jar"/>
    </target>
    Repack:
    <target name="RepackFile" depends="p200">
    <pack200 src="${fileId}"
    destfile="${fileId}${.pack}"
    repack="Yes"
    segmentlimit="-1"
    />
    </target>
    Pack:
    <target name="PackFile" depends="p200">
    <pack200 src="${fileId}"
    destfile="${fileId}${.pack.gz }"
    gzipoutput="yes"
    segmentlimit="${segmentlimit}"
    />
    </target>

    Hi,
    In My project, I was earlier using JDK Toolkit based Pack200 Utility and It was working fine for me. As each time user has to set JDK Bin path (C:\Program Files\Java\jdk1.6.0_02\bin) in System variables to run batch file so I switched to Ant based tasks through (https://java-pack200-ant-task.dev.java.net/ ) for Pack200 but it does not work fine.
    I came across Following Issues.
    #1. I have around 60 Jar files which earlier I was Repacking / packing through Batch file with Jdk based Pack200 support and it worked fine
    Repack:
    pack200 repack segment-limit=-1 %(JarFileLocation)\(FileName)
    Pack:
    pack200 --segment-limit=-1 %(JarFileLocation)\ FileName.pack.gz %(JarFileLocation)\(FileName)
    #2. Now I switched to Ant Based Pack200 tasks and used following targets. Repacking goes fine but
    At time of Packing, I am getting Exception. �java.lang.SecurityException: SHA digest error�.
    I experimented with adding some of Attributes like Effort=1 or 0 but it does not work.
    There is no difference what I was doing earlier with Jdk based Pack200 and now with Ant based
    Pack200 tasks then why I am getting Exception and how it can be eliminated?
    <target name="p200">
    <taskdef name="pack200"
    classname="com.sun.tools.apache.ant.pack200.Pack200Task"
    classpath="${library}/Pack200Task.jar"/>
    <taskdef name="unpack200"
    classname="com.sun.tools.apache.ant.pack200.Unpack200Task"
    classpath="${library}/Pack200Task.jar"/>
    </target>
    Repack:
    <target name="RepackFile" depends="p200">
    <pack200 src="${fileId}"
    destfile="${fileId}${.pack}"
    repack="Yes"
    segmentlimit="-1"
    />
    </target>
    Pack:
    <target name="PackFile" depends="p200">
    <pack200 src="${fileId}"
    destfile="${fileId}${.pack.gz }"
    gzipoutput="yes"
    segmentlimit="${segmentlimit}"
    />
    </target>

  • How to get Ant option under windows- Preferences in Eclipse Luna?

    Hello Eclipse Support,
    I switched from Eclipse Kepler(windows 64-bit) to Eclipse Luna(eclipse-cpp-luna-SR2-win32-x86_64.zip) and I see that Ant option is missing under windows->Preferences.
    I tried this way:
    I saw there was an Apache ant(eclipse\plugins\org.apache.ant_1.9.2.v201404171502) plugin in Eclipse-Luna package like in Eclipse-Kepler.
    I tried to install it through Help->install new software. I was unsuccessful even by giving local path point to the plugin directory of eclipse - it showed error msg stating "could not find file at the location that I had selected"
    or
    the path from apache-ant website(followed the instructions available in ant website to install).
    Could you please let me, whether I am doing wrong and If yes, then what are the right steps to acheive this?
    Thanks & Regards,
    Rashmi

    Hi,
    I found the answer within the eclipse forum.
    My beginning search was not optimized and so, could not reach this post.
    https://www.eclipse.org/forums/index.php/m/628964/?srch=No+Ant+Editor#msg_628964

  • Error in Ant APT task when using exported WLP 10.3 Ant build scripts

    Hi -
    I'm trying to run the exported ANT build scripts for a default portal web app from the command line (either a windows shell or a cygwin shell) and I get the following error on both occasions :
    c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build.xml:122: Apt task requires Java 1.5+
    More details :
    $ ant -v -Dworkspace=C:\\BEA\\Workspaces\\PortalTutorials\\workspace.xml
    Apache Ant version 1.7.1 compiled on June 27 2008
    Buildfile: build.xml
    Detected Java version: 1.6 in: c:\BEA_10.3\jdk160_05\jre
    Detected OS: Windows XP
    parsing buildfile c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build.xml with URI = file:/c:/BEA/Projects/PortalTutorials/tutorial-portal-web/build.xml
    Project base dir set to: c:\BEA\Projects\PortalTutorials\tutorial-portal-web
    [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
    Build sequence for target(s) `build' is [init.env, check.params, check.versions, init.typedefs, init, build]
    Complete build sequence is [init.env, check.params, check.versions, init.typedefs, init, build, stage, archive, clean, clean.all, assemble, generated.root.init, assembly, stage.to.ear, ]
    init.env:
    [property] Loading Environment env.
    check.params:
    Property "env.WORKSHOP_WORKSPACE" has not been set
    check.versions:
    init.typedefs:
    [echo] Using Workshop Libraries located in the "C:\BEA\Workspaces\PortalTutorials\workshop-lib" directory.
    parsing buildfile jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml with URI = jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml
    parsing buildfile jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml with URI = jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
    Trying to override old definition of task apt
    [macrodef] creating macro structselector
    [presetdef] defining preset resolve
    [macrodef] creating macro for-each-java-src-path
    [macrodef] creating macro for-each-resource-path
    [macrodef] creating macro for-each-referenced-component
    [macrodef] creating macro for-each-referenced-project
    [macrodef] creating macro for-each-project-in-build-order
    parsing buildfile jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-wls-antlib.jar!/com/bea/workshop/wls/antlib/antlib.xml with URI = jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-wls-antlib.jar!/com/bea/workshop/wls/antlib/antlib.xml
    Trying to override old definition of task jspc
    init:
    Property "patch.home" has not been set
    build:
    [mkdir] Skipping c:\BEA\Projects\PortalTutorials\tutorial-portal-web\.apt_src because it already exists.
    [available] Found: src\main\java
    [mkdir] Skipping c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build\classes because it already exists.
    [apt] [web.content.root]|[c:\BEA\Projects\PortalTutorials\tutorial-portal-web/src/main/webapp]
    [apt] [web.source.roots]|[c:\BEA\Projects\PortalTutorials\tutorial-portal-web/src/main/java]
    BUILD FAILED
    c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build.xml:106: The following error occurred while executing this line:
    jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:54: The following error occurred while executing this line:
    c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build.xml:122: Apt task requires Java 1.5+
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    I tried using a lower JDK 1.5.x - but that failed as well (complaining that 1.6 was needed).
    Any help will be appreciated.
    Rgds/Deepak

    Hi,
    Have you find a solution for this problem?
    I have exactly the same one. I must build my web-services with some dependence compiled on java 1.6 so I need to use the APT task with a java 1.6 but the problem "Apt task requires Java 1.5+" appear.
    Thanks in advance for your answer.

  • GWT Testing from Ant Junit task

    Hey, gentlemen,
    I have a target to create junit task to run arbitrary tests for GWT (GWTTestCase subclasses) from different packages. Task should print test cases output in regular junit format and launch tests according to name format, let's say *TestCase.java from anywhere in the project.
    So, the problem is:
    I run it through shell command line
    java -cp 'CLASSPATHHERE' junit.textui.TestRunner my.package.MyTestCase
    successful, as well as from
    <java name="junit" class="junit.textui.TestRunner" ...>
    </java>
    ant target, BUT
    When I try to do it with the <junit> task, I CANNOT specify a tool (junit.textui.TestRunner) I want to run it with (no tag or attribute), so it failed to initialize hosted mode server. Specifying it like a regular test cases cannot run... (maybe something wrong with my eyes)
    Did anybody work with GWT and test cases? Any opinions? Thanks in advance...

    When you say you have the junit.jar on the classpath, where did you configure this? In the 10.1.2 release, it needs to be specified in the "Additional Classpath" field of the Project Properties.
    -Matt Hawkins
    Oracle JDeveloper

  • Why this WLST script does not work from ant a task

    Hi,
              The following is my lovely WLST script to disable managed server hostname verification in a cluster environment.
              It works perfect if I run it from the OS command line,
              java -cp $WL_HOME/server/lib/weblogic.jar sslSetting.py weblogic weblogic t3://localhost:7001
              But if I run it from ant task, it never works. Nothing happens, not even any messages. Any idea?
              ------ sslSetting.py -----------
              # Disable HostnameVerification on managed servers
              # This is a ONLINE script. The admin server must be running
              # @param $1 BEA_USER_NAME
              # @param $2 BEA_USER_PWD
              # @param $3 admin server URL
              if (len(sys.argv) != 4):
              print "usage: " + sys.argv[0] + " domain-home "
              sys.exit()
              beaUserName=sys.argv[1]
              beaUserPwd=sys.argv[2]
              adminServerUrl=sys.argv[3]
              def handleServer(server):
              SSLPath="/Servers/" + server.getName() + "/SSL/" + server.getName()
              print("handleServer(1): " + SSLPath)
              try:
              cd (SSLPath)
              print("handleServer(2): " + SSLPath)
              set("HostnameVerificationIgnored", "true")
              except Exception, inst:
              dumpStack()
              print ("FAILED handleServer(): " + SSLPath)
              else:
              print ("DONE handleServer(): " + SSLPath)
              #===============================================================================
              # Main
              #===============================================================================
              try:
              connect(beaUserName, beaUserPwd, adminServerUrl)
              edit()
              startEdit()
              adminServerName=cmo.getAdminServerName()
              for server in cmo.getServers():
              if adminServerName != server.getName():
              handleServer(server)
              save()
              activate()
              except Exception:
              dumpStack()
              else:
              print ("=== DONE ===")

    OK, when I run the WLST script from command java, I only need the weblogic.jar in the classpath. But I'll need a couple other jar file for it to work inside an ant target, as showing below.
              <target name="run-wlst">
              <java classname="weblogic.WLST" fork="true">
              <classpath>
              <pathelement path="${props.JAVA_HOME}/lib/tools.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/weblogic_sp.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/weblogic.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/webservices.jar"/>
              </classpath>
              <sysproperty key="weblogic.Home" value="${props.WL_HOME}" />
              <arg line="sslSetting.py weblogic weblogic t3://localhost:7001"/>
              </java>
              </target>

  • ANT java task and java 1.1.8

    Hey all,
    I am trying to ensure that my ANT scripts are building, jar'ing and obfuscating my java files in java 1.1.8 even though I have 1.4.1 installed on my system. I am having a hard time getting accurate reference on how to force the "java" task to run in 1.1.8. I set fork="true" but don't know how to fork it to a specific VM. My general plan is to.....
    1. Build into {$build} directory in 1.1.8
    2. Jar the files up using deploy.jar
    3. Obfuscate this jar using retroguard
    If anyone can help me with this, it would be greatly appreciated. Below are the ANT scripts that I am using. So far the javac command seems to be working properly in 1.1.8, my problems now come from the java command.
    <target name="init">
    <tstamp/>
    <delete dir="${build}"/>
    <mkdir dir="${build}"/>
    </target>
    <target name="compile" depends="init">
    <javac srcdir="${src}"
    destdir="${build}"
    fork="yes"
    executable="c:/jdk1.1.8/bin/javac"
    compiler="javac1.1"
    verbose="yes"
    target="1.1"
    memorymaximumsize="128m"
    memoryinitialsize="128m"
    />
    </target>
    <target name="makejar" depends="compile">
    <java jar="lib/deploy.jar" jvm="javaw" fork="true">
    <arg value="-classpath"/>
    <arg value="${build}"/>
    <arg value="-jar"/>
    <arg file="lib/myJarPLAIN.jar"/>
    <arg value="-silent"/>
    <arg value="org.mypath.MainAppletClass"/>
    </java>
    </target>
    <target name="makeRPJar" depends="ratioprop-dist">
    <java classname="RetroGuard" jvm="javaw" fork="true">
    <classpath path="lib\retroguard\"/>
    <arg line="lib\myJarPLAIN.jar lib\mysrc\myJar.jar lib\myscript.rgs"/>
    </java>
    </target>
    Thanks!
    Rob

    I think you're going to have to use exec as opposed to java. The java task uses the same JDK/JRE, though it might use a different command within the JDK/JRE.
    It's not that much more difficult, especially if you have all the parameters declared already.

  • Java.lang.UnsupportedOperationException coming out of ant jwsc task

    Hello!
    I'm trying to stand up a simple example web service so that I can 'instrument' it with a QOS monitoring application. (The goal here is to learn to use the monitoring app.) I'm pretty sure that I've got a usable piece of code for a web service; I can use Endpoint.publish and get results, and I copied a test stub I found somewhere to use a QName to test it and that works.
    I'm getting the above referenced error coming out of my build.xml file when I try to compile this as a web service inside the WL environment. The error message reads as being generated by line 11 which reads 'destdir="./target/classes" '. It's also got the closing '>' from the '<jwsc' declaration so that is likely why it's this line that's complaining.
    The stacktrace references 'Collections.$SingletonSet$.Remove()' which is being called out of jwsctask. It then progresses through jwsLoader and jwsMudule before the stack goes through a bunch of org.apache.tools.ant classes. It's the remove() that's got me worried; I can't find any documentation on SingletonSet as a nested class of Collections, but it's reasonable to think that remove() is actually an UnsupportedOperation. That would mean that I've found a bug as opposed to having just done some stupid newbie thing. I'd much rather be a stupid newbie. :-)
    Anything that the collected wisdom could point out to me would be greatly appreciated. TIA
    -Dan Fox

    See if this helps -
    Exception while accesing a sample page

Maybe you are looking for