Topic: How to Prevent Reduntant compilation IN ANT

see this build.xml
init is separate task,compilation is separate task here;when i run this script for the firsttime it compiled the files;but next time i didnt change anything in source files;i dont want to source files to be compiled again;will ant script run the compile task(compile the all source files) again?
<project name="MyProject" default="dist" basedir=".">
<description>simple example build file</description>
<!-- set global properties for this build -->
<property name="src" location="com/blah/blah/blah"/>
<property name="build" value="c:/JDeveloper/jdev/mywork/Model/classes"/>
<property name="ejbjardir" value="C:/Source/dist"/>
<property name="CopyofEjbJAR" value="c:/downloads"/>
<property name="jdev.home" value="C:/JDeveloper"/>
<path id="common.class.path">
<pathelement location="${jdev.home}/j2ee/home/lib/ejb.jar" />
<pathelement location="c:/utilities/commons-logging.jar" />
</path>
<property name="common.class.path" refid="common.class.path"/>
<target name="init">
<delete file="${CopyofEjbJAR}/EJB.jar"/>
<copy file="${ejbjardir}/EJB.jar" todir="${CopyofEjbJAR}"/>
<delete>
<fileset dir="." includes="**/*.cdi"/>
</delete>
</target>
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${src}" destdir="${build}" debug="on">
<classpath>
<pathelement path="${common.class.path}" />
</classpath>
</javac>
</target>
</project>

Hi David,
thanks for the reply.
More or less I agree some points you mentioned above.
I did use Axis 1.x to test the inter-operability. The web service was developed in Weblogic 8.1 and is a part of an existing web application. It will be merged to existing application deployed in weblogic 8.1.
I also program the web service client to test the web service.
The implementation of the server and client will be handed over the project team and training for supporting or continuous development have to be conducted by me. So I don't like to use two types of technologies which will make thing complex.
I found this issue when I tried to protected the web service endpoint, eg http://localhost:7001/epol/service, using the web application Basic mechanism. The wsdl URL http://localhost:7001/epol/service?WSDL is also protected in this case. Unfortunately the username/password pair is not sent to the server when the weblogic client download the WSDL from the server. In this case, the client failed and throw exception.

Similar Messages

  • How to programmatically jump from one topic to another in a compiled CHM file

    Hello,
    I'm working with the trial version of RoboHelp 9.0, trying to evaluate it for my company before we go ahead and purchase it.
    Basically I'm importing a Word document and then exporting it into a .chm file.
    I'm using a programing tool to jump from one topic to another in the compiled CHM file.
    The topic is displayed just fine but the content on the left side stays closed and doesn't open accordingly.
    I'm not sure how to extract from the RoboHelp viewer a topic's HTML address to serve as an input for my programming tool.
    I'll appreciate any idea.

    hi
    say there are two infoobjects X  and Y.
    X is existing infoobject and Y in new one.
    go to infosurce-search for X-create export datasource - map the rules and load the data.
    This is one way.
    Other way is u can use X as a reference object of Y so that both of them have same structure and both objects will share common database tables in BW which are exsting for X.
    Hope this helps.
    Kindly assign the points if it helps.

  • How to prevent user from selecting a specific printer?

    Hi there
    I have a MailFolder which has an ArrayList of Email objects inside it. Each MailFolder has an attribute called folderFile which is a reference to a folder in the operating system. Each Email has an attribute called parentFile which is a reference to a file in the operating system.
    Now, I am trying to put printing into my application.
    When I print using a normal printer like my HP Deskjet or the likes - an actual physical printer - everything works fine. But when I print using the Microsoft Office Document Image Writer, things go wierd. The following things happen;
    I call myMailFolder.getFolderFile().exists() and this = false. But if I (in the debugger) make a new file pointing to the same path, .exists() = true. Also if I look in the OS, the file exists. So somehow in the job.print() this Document Image writer seems to be messing up this file reference. The same thing happens to the myEmail.getParentFile().
    So to fix this, can anyone tell me how to prevent the user from selecting this printer, or can anyone tell me why this is happening only with the Document Image Writer?
    Many thanks!
    Rachel

    I have similar problem with our printing program. I am printing Java Tables, zoom in every column in a landscape page accross multiple pages.
    There are two fatal problems:
    1. On Dell Latitude laptop, the HP5100 printer didn't work; I have to change the code to draw the table header with 2D graphics.
    2. Crash when printing on MS document image writer, but on some computers
    it works perfectly.
    Any one have a good solution/same result for topic 2?
    Thanks,

  • How to prevent repitition in array implementation?

    Hi!
    i made a program that will display the output of an a multidimensional array into an output line. but i have a problem on how to prevent the output to print the same item..
    thank u!
    the output of this program will have at least 1 item that is repeated.
    for example {1, 2, 3, 4, 1} how to make the program only print out one "1" {1, 2, 3, 4}?
    The program output is ({1, 2, 3, 4, 1},}
    what i want is ({1, 2, 3, 4}, ).
    //compile this first
    public class Graph {
    this function will convert graph that it get fom GraphToSet.java to set
    public static void convert(int[][] a) {
    int rows = a.length;
    int cols = a[0].length;
    System.out.println("Graph in matrix form["+rows+"]["+cols+"] = "); //Displaying the graph in matrix form
    for (int i=0; i<rows; i++) {
    System.out.print("{");
    for (int j=0; j<cols; j++)
    System.out.print(" " + a[j] + ",");
    System.out.println("},");
    System.out.println("\nG=(V,E)");
    System.out.print("G=({");
    for (int k=0; k<rows; k++)
    System.out.print(" "+ a[k][0] + ", "); //retrieving all the vertices from GraphToSet.java
    System.out.print("}"); //and print it out
    System.out.print(", {");
    for (int i=0; i<rows; i++) {
    System.out.print("(");
    for (int j=0; j<cols; j++) //retrieving all the edges from GraphToSet.java
    System.out.print(" " + a[j] + ","); //and print it out
    System.out.print(")");
    System.out.println("})"); //final output for graph to set
    public class GraphToSet {
    run GraphToSet to get the output from Graph.java and GraphToJava.java
    public static void main(String[] argv) {
    int x[][] = {
    { 1, 2 }, //graph are repsented in matrix form
    { 2, 3 },
    { 3, 4 },
    { 4, 1 },
    { 1, 3 },
    Graph.convert(x); //convert the graph into matrix by calling the function
    //convert() from Graph.java

    Hi,
    i got solution for ur problem and see /* Start of Modified code */ Comment for new modified code
    //compile this first
    import java.util.Hashtable;
    public class Graph {
    this function will convert graph that it get fom GraphToSet.java to set
    public static void convert(int[][] a) {
    int rows = a.length;
    int cols = a[0].length;
    System.out.println("Graph in matrix form["+rows+"]["+cols+"] = "); //Displaying the graph in matrix form
    for (int i=0; i<rows; i++) {
    System.out.print("{");
    for (int j=0; j<cols; j++)
    System.out.print(" " + a[j] + ",");
    System.out.println("},");
    System.out.println("\nG=(V,E)");
    System.out.print("G=({");
    /* Start of Modified Code */
    Hashtable num=new Hashtable(); // New Code
    String value=""; // New Code
    for (int k=0; k<rows; k++)
         value=String.valueOf(k);
    num.put(value,value);
    for (int k=0; k<rows; k++)
    System.out.print(" "+ (String)num.get(String.valueOf(k))+ ", "); //retrieving all the vertices from GraphToSet.java
    /* End of Modified Code */
    System.out.print("}"); //and print it out
    System.out.print(", {");
    for (int i=0; i<rows; i++) {
    System.out.print("(");
    for (int j=0; j<cols; j++) //retrieving all the edges from GraphToSet.java
    System.out.print(" " + a[j] + ","); //and print it out
    System.out.print(")");
    System.out.println("})"); //final output for graph to set
    public class GraphToSet {
    run GraphToSet to get the output from Graph.java and GraphToJava.java
    public static void main(String[] argv) {
    int x[][] = {
    { 1, 2 }, //graph are repsented in matrix form
    { 2, 3 },
    { 3, 4 },
    { 4, 1 },
    { 1, 3 },
    Graph.convert(x); //convert the graph into matrix by calling the function
    //convert() from Graph.java
    Regards
    Rajendra Prasad Bandi
    email : [email protected] , [email protected]

  • How a procedure is compiled in oracle ? (implicit and explicit compilation)

    how a procedure is compiled in oracle ? (implicit and explicit compilation)

    When you create a proceudre oracle automatically compile and stored it. Use the following syntax to compile a procedure
    ALTER PROCEDURE hr.remove_emp COMPILE;
    Thanks

  • How to change default compile directory tmp_ejb?

    Dear all,
    Someone knows how to change the default directory "tmp_ejb...." in WebLogic Server
    7.0?
    This is the default directory where WebLogic Server 7.0 generates and compiles
    the EJB's declared in config.xml.
    I try to specify the attribute TmpPath="ANOTHER_TMP_LOCATION_DIRECTORY_FOR_EJB"
    in the EJBContainer node but still doesn't work.
    The same thing happens when I test this attribute on EJBComponent declaration.
    Someone knows if there is an enviroment variable that specify this tmp_ejb location
    path?
    It's false that the tmp_ejb is located where the config.xml file is placed.
    I have 3 weblogic servers and they haven't the same behaviour.
    Someone can help me??????
    Thanks.

    I ran into the same problem and was wondering if you got an aswer the question you posted in BEA's news group: "How to change default compile directory tmp_ejb?
    Thanks

  • How to prevent an error of [WIP work order ... is locked-]

    Hello experts
    Can someone tell me how to prevent an error which [The WIP work order associated with this transaction is currently locked and being updated by another user.  Please wait for a few seconds and try again.Transaction processor error].
    How can you prevent that error?
    P.S.
    Oracle support told me [When you make data of mtl_transaction_interface, give same transaction_header_id to all data. Then, you kick worker with appointed transaction_header_id. Or, you set up being uncompatible with workers].
    I cannot allow that making with same transaction_header_id and being uncompatible with worker on my system.

    Hi santosh,
    You can implement badi BBP_DOC_CHECK to check vendor email and issue error message.
    Kind regards,
    Yann

  • How to prevent PO changes in ME22N after Order acknowledgement?

    Hi everyone,
            Can anyone tell me how to prevent PO changes (ANY) in ME22N after Order acknowledgement?
            I would like to make it possible without release strategy process or authorizations.
            Do you know some User Exit or Customazing way?
    Regards.
    Jaime S.

    Dear Jaime S,
    You can do this by restricting in authorization SHDO and also by marking "changes not possible after release" in Release strategy procedure.
    And also you can navigate the menu to, SPRO------>IMG------>Material Management--->Purchasing(OLME)------->Purchase Order---->Define screen Layouts at Document Level---->And go to ME22n And Select the right parameter and in this you can make it display, optional or required entry for the fields.
    Regards,
    Manjunath B L

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • How to prevent a solaris user to telnet from multiple computers

    Hello,
    How to prevent Solaris users to telnet from multiple computers? They should be able to telnet from only one PC.
    Please help..

    ora_tech have a good point, i was about to suggest ipfilter, which is a built-in-firewall in Solaris, but using tcp wrappers would probably be easier. It all depends on which level of security you want (blocking the telnet requests in a firewall would generally be safer than blocking them at the tcp wrapper level, since its prevents some processing).
    Since Solaris 10 you can also easily enable tcp wrappers on the inetd services with inetadm, see:
    http://blogs.sun.com/gbrunett/entry/tcp_wrappers_on_solaris_10
    .. for more details..
    .7/M.

  • How to prevent iTunes for Windows from "Updating iTunes Library"? (Library is on a NAS and managed by iTunes for Mac. Now getting update wars between Mac and Windows versions of the player.

    How to prevent iTunes for Windows from "Updating iTunes Library"?
    My library is on a NAS and managed by iTunes on a Mac. I can connect from wife's Windows laptop using iTunes for Windows but every time I do, it Updates iTunes Library. Next time I log in from my Mac it Updates iTunes Library in return. It appears I'm experiencing "Update Wars" between the Mac and Windows versions of iTunes. I would like to allow my wife to stream iTunes songs to her new laptop but I don't want any updates from this source... prefer to manage the library from my Mac and not allow Windows to do any thing other than listen to existing playlists.
    Thanks for any help/suggestions.

    Connect the PC to the library on the NAS. Wait while "updated".
    Under Edit > Preferences > Advanced make sure the media folder is correctly pointed at the media folder on the NAS. If not correct, close iTunes, wait a few moments, then open iTunes again.
    Close iTunes on the PC. Do not open iTunes on the Mac.
    Copy the library files, iTunes Library.itl, iTunes Library Extras.itdb, iTunes Library Genius.itdb, sentinel and the folder Album Artwork into an empty iTunes folder on the PC, for example C:\iTunes.
    Click the icon to start iTunes and immediately press and hold down SHIFT. Keep holding until prompted to choose or create a library. Click choose and browse to the copied .itl file, e.g. C:\iTunes\iTunes Library.itl
    The library should now work properly on the PC, however check the setting for the media folder. If needs be correct, close iTunes and reopen.
    Open iTunes on the Mac. It will update again, but that should be last time.
    tt2

  • How to prevent others use their iDevices to remote control apple tv?

    Hi All,
    I'm wondering that does anyone know how to prevent others use their iDevices to remote control my apple tv?
    settings
    1. the apple tv is in the school.
    2. all students could access the Internet
    3. The apple tv is sharing the same Internet with students.

    Welcome to the Apple Community.
    The remote app uses homesharing, therefore anyone wanting to control an Apple TV with the remote app would need to know the home sharing ID and password.

  • How to prevent apps from syncing in the new version of itunes?

    Hey there.
    I brang my macbook to Applestore cause it had a problem and they downloaded the latest version of itunes. Everything's fine and my music, videos and apps are in the new itunes like before. But now, when I want to sync my iphone, a pop window asks me to give the password of the itunes account I used to download some of my apps or it will delete them and their data. The problem is that one of these accounts is an old friend's one and I actually lost all contact with him. So basically now I can't sync my iphone at all or it will delete all my apps.
    Has anyone any idea how to sort that out? Or at least knows how to prevent apps from syncing in this new version of itunes?
    Thanks for your help

    Onthe top menu
    View > Show Status Bar.
    The grey bar will now appear at the bottom with the info you want

  • How to prevent a text in script from displaying if its value is zero

    Dear all,
    How to prevent a text in script from displaying if its value is zero
    for eg   Price  = 0.00
    if price is 0 it should'nt appear in output.
    I tried with    if price ne 0.
                       price = &price&
                        endif.
    but it's not working.
    Regards
    Raj
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 20, 2009 8:59 AM

    Hello Nagaraju,
                           What you were doing is partially right.
    The correct format to write in the script is as follows :
    /:  if &PRICE& ne 0.
      &PRICE&
    /:  endif.
    This should work. Let me know how it goes.
    Nayan

  • How to prevent JaxB creation of 2 Interfaces for each Element?

    hi,
    does any body know how to prevent JaxB creation of 2 Interfaces for each Element (The Content Interface and the element interface)?
    I want to configure JaxB to use only one Interface and only one implementation Class.
    Thank's,

    I am sorry I can not answer your question, I have got the same problem. Could you please email me to
    [email protected] when you know the answer, please.
    I have a question for you. When and complex type is validated, I get the object which contains the error. ( or objects ).
    However. How do know the position in the actual parent object. basically. Is there a way to know exactly the position of that attribute in that object. I need to store errors strings.
    The first problem derives from this one:
    It is not possible to execute validate function for a primitive attribute inside an structure.
    I would appreciate your help.
    Thanks.
    Gustavo.

Maybe you are looking for