Separate property files for two builds

Hi,
I have two build files, one is build.xml and another is DB.xml which executes some targets in build.xml
Eg :- 'customer' is a property which i need to enter both in build.xml and and DB.xml,
Here the 'customer' property is been read from build.properties file but not from DB.properties file which is specific to DB.xml. But I want the properties to be independent for both build.xml
and DB.xml i.e when i run DB.xml it should read the 'customer' property from DB.properties but not from build.properties
can any body help
thanks in advance

Two options spring to mind.
Properties in ant are read only. i.e. once they've been set, that's it.
By putting <property file="DB.properties" /> at the top of DB.xml and <property file="build.properties" /> at the top of build.xml providing you're calling ant -buildfile DB.xml everything should work OK.
Option 2.
The targets in build.xml that are called by DB.xml should be parameterised.
Common compile target in build.xml
<target name="compile">               
   <javac srcdir="${srcdir}"
                destdir="${destdir}" classpathref="compile.classpath"
          debug="${debug}"
                fork="yes"
                executable="${executable}"
          source="${source}" />
</target>Code that uses the common compile target
<import file="build.xml" />
<target name="compile">
   <antcall target="compile">
      <param name="srcdir" value="${project.src}" />
      <param name="destdir" value="${project.build}" />
      <param name="debug" value="${release.java.debug}" />
      <param name="executable" value="${release.java.home}/bin/javac.exe" />
      <param name="source" value="${release.java.version}" />
      <reference refid="compile-src-classpath" torefid="compile.classpath" />
   </antcall>
</target>

Similar Messages

  • Is separate licensing required for Report Builder 3.0 ?

    Is separate licensing required for Report Builder 3.0 ?

    No report Builder 3.0 is just the client side light-weight component to work with published reports & does not need any specific license however the server over which the reports are published (Eventually) must be appropriately licensed
    Good Luck! Please Mark This As Answer if it solved your issue. Please Vote This As Helpful if it helps to solve your issue

  • Standard way to maintain property files for internationalization??

    Hi All,
    For multiple language support, normally we maintain a different property file for different languages.For example, consider English language.In my case, i placed all the labels for english in one property file through out my application.All french labels in one property file and so on.
    My question is, Is it better to maintain seperate property file for each page also??? Or else, one property file is good enough for one language??? which is better?(interms of complexity and performance)

    Here is how I mapped the taglibs in my XML file and it works fine:
    <taglib>
              <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
              <taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
    </taglib>The .tld files are in the WEB-INF/lib dir. To use them i put this line in the JSP file:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="struts_html" %>Hope this helped,
    Calin

  • Can you have two separate icloud accounts for two iphones that sync with the same imac?

    can you have two separate icloud accounts for two iphones that sync with the same imac?

    Welcome to the Apple Community.
    Yes and no.
    There is no issues at all if you use two user accounts on the mac, each can sync with one of the accounts.
    If you are using a single user account, you can add the second account as a secondary account in settings > mail, contacts and calendars and you can then sync mail, contacts, calendars, notes and reminders from the second account, but not documents and data, back to my mac or photostream.

  • Separate CSS files for Differenct Applications in the Same Workspace

    I am working in APEX 4.0, using Theme 4 (Topaz), primarily with the region template "Top Bar." The application I am working on has gotten so large that I decided to break it into two applications. So I copied the original application and then deleted the pages that I did not want in the second application. I then modified the authentication for a single login. One of the nice things about the Top Bar template is that you can color the background. I had a blue background in the first application and wanted to use a differenct color in the other. So I created a second CSS file and uploaded it to the Cascading Style Sheets area of the Shared Components file for the second application. Turns out that both it and the style sheet for the first application now show up in the CSS file area. The CSS file for the second application has no effect. Here is the CSS code:
    .rc-content-main
          background-color: #E5E5AA;
         }I also tried giving the region on each page in the second application a static id and then identifying them in the CSS file by the id. That didn't work either, at least not yet. Sometimes it takes the server a while to refresh.
    Question: For two applications in the same workspace, can there be separate CSS files? If so, how do I set them up so that each responds only to one of the applications?
    Edited by: Doug on Nov 14, 2012 4:54 AM
    Edited by: Doug on Nov 14, 2012 7:16 AM

    Hello,
    If you upload your file to Shared Components >> Cascading Style Sheetst then:
    edit your page template in the header section and just before +*</head>*+ tag  add :
    <link rel="stylesheet" src="#WORKSPACE_IMAGES#MY_FILE.css" type="text/css" />And that will be applied for all pages that have the same Page Template.
    You can edit a page and put this in the header section to be applied only for a that page:
    <style>
    <link rel="stylesheet" src="#WORKSPACE_IMAGES#MY_FILE.css" type="text/css" />
    <style>If the file is on your web server then replace #WORKSPACE_IMAGES# with #IMAGE_PREFIX#
    This should be helpful to you:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_sub.htm
    Best Regards,
    Fateh
    If you believe that my answer is correct or helpful to you, then please mark it as helpful or correct...

  • Reading an external property file for adapter configurations (How-To)

    One thing that has bugged me is having to change an Adapter's property settings in the context file and then build and re-deploy the bundle to effect those changes. This really becomes a problem when you want to test a bundle in different server environments (Development, QA, Staging) and then finally deploy that same bundle to Production. Here at EnerNOC, all those environments have different message servers and database schema names, making it a real challenge to insure you're building the same bundle each time for the different environments.
    I played with a number of different ideas, but I wanted the solution to be Spring based. I finally settled on a rather simple solution to use external property files with the <util:properties/> tag of Spring, and then injecting the bean created from this into the adapters requiring different configurations.
    First, in the context file, I needed to add a new Spring namespace - http://www.springframework.org/schema/util:
    +<beans xmlns="http://www.springframework.org/schema/beans"+
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"*
    xmlns:osgi="http://www.springframework.org/schema/osgi"*
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"*
    xmlns:util="http://www.springframework.org/schema/util"*
    xsi:schemaLocation="*
    http://www.springframework.org/schema/beans*
    http://www.springframework.org/schema/beans/spring-beans.xsd*
    http://www.springframework.org/schema/osgi*
    http://www.springframework.org/schema/osgi/spring-osgi.xsd*
    http://www.springframework.org/schema/util*
    http://www.springframework.org/schema/util/spring-util-2.5.xsd*
    http://www.bea.com/ns/wlevs/spring*
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">*
    Next, I defined a bean for my property file:
    +*<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/>*+
    And then finally, I modified my adapter to inject a Properties object and use that to define the other properties in the Adapter:
    +*<wlevs:adapter id="MyMessageAdapter" class="com.enernoc.cep.message.adapter.MyMessageAdapter" >*+
    +*<wlevs:instance-property name="properties" ref="serverProperties"/>*+
    +*<wlevs:listener ref="HAInputAdapter"/>*+         
    +*</wlevs:adapter>*+
    With this change, I can now build and deploy a bundle once to whatever servers I choose, and modify the server.properties file in each environment to make the necessary changes for message servers and databases. In a multi-server enviroment this becomes really handy as our deploy script needs to only create and push server.properties files and not new bundles.
    As a nice-to-have feature someday, it would be great if Oracle could enable their <wlevs:/> namespace to recognize the Spring PropertyPlaceholderConfigurer feature, so that we could use placeholder variables for property values of <wlevs:/> specific tags.
    Edited by: Jim Leary on Feb 28, 2011 4:11 PM
    Edited by: Jim Leary on Feb 28, 2011 4:14 PM
    Edited by: Jim Leary on Feb 28, 2011 4:15 PM
    Edited by: Jim Leary on Feb 28, 2011 4:16 PM
    Edited by: Jim Leary on Feb 28, 2011 4:17 PM
    Edited by: Jim Leary on Feb 28, 2011 4:18 PM
    Edited by: Jim Leary on Feb 28, 2011 4:19 PM

    Jim,
    You can use com.bea.wlevs.spring.support.ConfigurationPropertyPlaceholderConfigurer, which is based on org.springframework.beans.factory.config.PropertyPlaceholderConfigurer. For example,
    <bean class="com.bea.wlevs.spring.support.ConfigurationPropertyPlaceholderConfigurer">
    <property name="location" value="file:config/test.properties"/>
    </bean>
    <wlevs:adapter id="myAdapter" class="oracle.cep.sample.MyTestAdapter" >
    <wlevs:instance-property name="serverAddress" value="${serverAddress}"/>
    </wlevs:adapter>
    Manju.

  • Separate sampling rate for two different channels for a USB-6009 daq

    Hi, 
    I am using a USB-6009 and incorporating the 'daq assistant' to change the sample rate.  I am trying to find a way to set the sampling rate to two unique values for two separate channels.  I've tried setting up two daq assistants and adjusting the sample rate different for each channel, though this does not work.  Is there any way to set the sample rate high for all channels then reduce the rate for a different channel - or an alternative?  I would appreciate any input on this, thank you!
    - Anthony
    Solved!
    Go to Solution.

    All tasks on a DAQ board that use a sampling clock must use the same clock.  Therefore, you cannot have two tasks on the same DAQ board sample at different rates.
    Alternatives would be:
    1. to combine all of the channels into a single task and just accept the extra data
    2. get an extra DAQ board to use in parallel
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to set up 2 separate iPhoto libraries for two users

    My wife and I have a macbook air, she being one user and me the other. We both have iphones and recently upgraded to the 5s. She had not ever openned itunes or iphoto on the computer as she used the it mainly for word processing, email and surfing the web. I, on the other hand, would play around in iphoto and ensure photo streaming was working and have a large itunes music collection.
    When I openned up her iphoto, all my photos from my account downloaded into hers. I forget what I did to make this happen but it might have done so automatically.
    My question is: how can I set up her own iphoto account when she is logged into her user account on the computer? We don't wish to share iphoto libraries as now is the case.
    And, this might not be the correct forum to bring this up, but when I take pictures on my iphone 5s, they stream to her iphoto library as well as mine. But, her pictures taken on her iphone don't stream/backup to either of our computer iphoto libraries even though she has an icloud account and photo streaming turned on on her phone. 
    I hope this makes sense as there are really 2 questions: setting up a separate iphoto library for each user on one computer, and, how to get photo streaming from her phone to her library
    Thanks in advance for any help

    First you both have to have your own user accounts on the MBA and separate iCloud accounts.  From there it's relatively simple to create you own libraries and have your respective iPhones link to those library when both devices are logged into the same iCloud account.
    OT

  • Different data-sources.xml files for each build

    Any thoughts on how to do this:
    I have two sets of data-sources. When I deploy the EAR to my stage box, I need to go to the "stage" data source of the other repositories. When I deploy the EAR to my production box, I need to use the production data sources for the other repositories
    I am using jdev 10.1.3
    There is a single data-sources.xml file - where, currently, I am manually editing the connection strings between deployments.
    I am using ant to build the EAR file.
    What is a more elegant way to do this?

    Use ANT script to build the EAR file.
    Have 2 different data-sources file one for production and one for stage.
    Based on the environment you want to deploy tell ANT to copy those files into the EAR.
    Just a suggestion.

  • Can I use the same music file for two accounts to be able to set up two different iTunes accounts?

    I would like to set up two different Itunes accounts on my mac.  I would like to have different accounts for my wife and I so that our devices have different accounts/contacts/email and stuff but we would like to use the same music library.  Can I set the different itunes to go to the same file to see music?  Or could I copy the music file and give the copy to the second itunes account?  I could set it up and authorize the music like for another user?  Is any of this possible?

    Hello 19firedude
    Try moving the entire iTunes Media folder to the Shared folder on your Mac and then in iTunes preferences, change the location of that folder to line it up. Then all you have to do in another user is follow the second set of steps to get that shared properly. Check out the article below for more detailed instructions.
    iTunes: How to share music between different user accounts on a single computer
    http://support.apple.com/kb/HT1203
    Regards,
    -Norm G.

  • Can I use symbolic links to share abook.mab file for two users

    If I delete any of the .mab files from one user profile and replace it with a symbolic link that points to the same file in the other profile will this synchronise my address books for the two profiles. I have win7.
    The object is to have two Windows User accounts sharing all the same email data. I have already have them pointed at the same message store.
    I also wish to know if deleting a .mab file will only cause it to be re-created.
    I am hesitant to experiment.
    Thanks

    Deleting any of the two default mab files, abook.mab (Personal Address Book) or history.mab (Collected Addresses) will result in new, empty files with these names being recreated automatically when TB is restarted.
    There are some ideas for sharing address books here:
    http://kb.mozillazine.org/Sharing_address_books

  • Saving Saving separate app sets for two iPhones?

    Hi,
    This has probably been asked before, sorry if redundant.
    I have an iPhone and an iPad, my wife has an iPhone. We prefer different apps on pur phones and a different set for the iPad. iTunes recognizes the devices with different names when they are attached, but the app set from the last device attached is still checked.
    It's a real pain to have to go through, checking and unchecking each time, just to Sync one or two new items.
    Is there a way to "save" your app set for each item so that when you connect a device, it recognizes it AND the last app set you choose for that device?
    Probably a real easy solution but darned if I can figure it out.
    Thanks
    Joe

    The recommended way to handle things is with separate user accounts on the Mac. You'll both have separate iTunes libraries and address books/calendars. You can also each use your own iTunes account much easier that way.
    IF you insist on sharing one user account, you can select which groups of contacts sync to each phone in the iTunes preferences. You could also forego syncing contacts with the Mac and sync them with a service like Google or Yahoo instead. This will keep them separate.

  • How to create separate log files for each deployed web application in oc4j

    Hi All,
    I am using Windows2000, Oracle9iAS(OC4J). Say I have deployed 3 web applications onto this oc4j server. Then how to create 3 different log files so that I can see the log messages(System.out.println's) of each of these web appliations in a different log file.
    Thanks and Regards,
    Ravi.

    Where do the messages printed via ServletContext.log() go? Is this configurable separately by web application? If so, you could at least replace your System.out.println() with sc.log() statements. For exceptions, you could trap them and log them since the log() method takes a throwable as well as a String.
    John H.

  • How can I  separate my iCloud for two advices

    How do you separate my iPod and iPad for I cloud?!?!

    Migrate one of them to a separate account.  To do this, start by saving any photo stream photos you wish to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If you are syncing notes with iCloud, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from this device, not from iCloud), choose Keep on My iDevice and provide the password to turn off Find My iPhone.  Then sign back in with a different Apple ID to create your new account and choose Merge to upload your data.

  • I've been watching this thing load files for two hours. How do I determine what remains to be done????

    Is there a "file directory" I can access to determine the files that have loaded successfully and those which are to be loaded. I can't believe this should take this much time and resource ???
    I've checked off the files as they have been initiated and when I am asked "Do I want to save a copy? I respond affirmatively. Is that an incorrect response on my part ????
    Thanks for getting back to me on this.

    Tools --> Downloads shows the downloads progress, more details here: [[downloads window]]
    Default download location can be set in [[options window - general panel]].

Maybe you are looking for

  • Tag Extra Info Classes not recongnized on 8.1

              I am trying to migrate a web application from 6.1 to 8.1 and am running into an           issue           with custom tag libraries. These tags have TEI classes associated with them that           are           used to define fields in the

  • How to make ECC as central alert server, and XI as child alert server?

    Hi All I have a requirement where, i need to raise alerts in XI message processing, and also during message processing in application system (ECC system). Now, how can i make ECC as central alert serer & XI as child alert server? We are not using CCM

  • Why are my templates in French!?!

    When I go to open a new document and use a template, they're all in French. I don't know French, so this is pretty frustrating. Any help would be greatly appreciated.

  • AS OF TIMESTAMP

    Hi. I'm trying to run this example that I have from documentation SELECT salary FROM employees AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '1' DAY) WHERE last_name = 'Chung'; but I'm getting "ORA-00933: SQL command not properly ended" error. How am I su

  • Runtime.getRuntime().exec(x) "Command not found"?

    Hello, I am attempting to run the following code in my java program. System.out.println("<!> gunzip -c " + curZippedFilePath + " | tar xf - --directory " + curMovedUnzippedPath; String unzipCommand[] = {"sh gunzip -c " + curZippedFilePath + " | tar x