How can I copy XML into WEB-INF/classes during webapp build in Workshop?

I am having difficulty performing what seems to be a simple task. I would like to move some XML configuration files from WEB-INF/src to WEB-INF/classes as part of the Workshop build. Unfortuantely, the class com.bea...WebAppBuildTask called from Ant only seems to know how to compile Java into the directory and to copy *.properties files. I am unable to find Javadoc on the class to see if there are configuration options. In addition, the actual location to which classes are compiled seems to be abstracted from me.
Any help would be appreciated.
Thanks,
Scott

Create a custom build file for the project and add a ant tasks to move
the files. The ant tasks would look something like this:
<!-- copy all property and xml config files to root -->
<copy todir="${dest.path}" overwrite="true" flatten="true">
<fileset dir="${src.path}">
<exclude name="**/*build*.xml"/>
<exclude name="**/*ant*.xml"/>
<include name="**/*.properties"/>
<include name="**/*.xml"/>
</fileset>
</copy>
HTH
Tom
Few other options include...
Place the properties file in a java project, instead of a web-project :(
Load them as resources relative to WEB-INF :(
Add a dummy project, tell the dummy project to use your own ant file
that does the moving. Order your projects to do this dummy project
before the web project :(
Best regards...
I am having difficulty performing what seems to be a
simple task. I would like to move some XML
configuration files from WEB-INF/src to
WEB-INF/classes as part of the Workshop build.
Unfortuantely, the class com.bea...WebAppBuildTask
k called from Ant only seems to know how to compile
Java into the directory and to copy *.properties
files. I am unable to find Javadoc on the class to
see if there are configuration options. In addition,
the actual location to which classes are compiled
seems to be abstracted from me.
Any help would be appreciated.
Thanks,
Scott
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Similar Messages

  • How can JSP pages be in WEB-INF?

    Hi, I read in a tutorial that anything in the WEB-INF folder is basically private to the outside world, meaning they cannot access it.
    I also read that JSP pages should be kept in the main folder of your application and any subfolders, but out of WEB-INF (which is for libraries, classes, and xml files).
    However, another tutorial has instructed me to put some JSP pages in the main application folder, and some results JSP pages in a subfolder of WEB-INF, and it still works!
    How is that so? The WEB-INF JSP pages are being accessed through a forward tag in my struts-config.xml file.

    users can't directly access WEB-INF, but your app can.
    just change the URL to point to the protected JSPs
    %

  • How can i copy text from web link title in safari

    Hi. How can i copy text to clipboard from web link title in safari in ios 7? Thank you
    Like this:
    http://photouploads.com/images/01wkw.jpg

    Once you have selected text, there will be blue circular buttons on the corners. Get the ones on the end and move them in towards the text that you want to copy. The problem that you seem to be facing where you are is that this text is a hyperlink. Because of that reason, you will have a difficult time tapping on the text without activating the link. I'm not sure you will be able to do that.

  • How can I copy movies into iPhone from my PC?

    How can I put movies into Iphone from PC.
    When I'm trying to put video files into library (mp4 format) it not appear in my iTunes library.

    You sync it to your iPad.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%204/9d04e8509b150edc93a 9a8b2adc4dc59.jpg

  • How can I copy a standard Web Dynpro Abap?

    I have to make changes to some texts in a standard web dynpro: FITV_FPM_START. One of the texts is "Description" ("Descripción" in Spanish), which seems to be protected in the OTR. So the only option I see is to copy the whole Web Dynpro, locate the component in which the text appears, and replace it for the new one. If there is a simplest way I'd be glad to know...
    I've copied the Web Dynpro and then all the Web Dynpro Applications, with their parameters and so on.
    When I verify one of them most of the things are not appearing on the screen. I can only see the buttons. What have I missed to copy?
    Thank you in advance.

    Hi,
    If you just want to change some OTR text, I do not think that you need to copy the whole application.  Just get the alias for this OTR text.  (I just tested changing an OTR text from SAP...it did not ask me for any keys...so I hope it will be alright in your case as well....)
    To get Alias, go to your webdynpro application, than go to menu "Goto", select "online text repository browser", than double click on the OTR text you want to change the text for.  This will open up a new window...the first line is Alias Name.
    take this Alias Name....go to transaction SOTR_EDIT
    on the screen which shows up, you have following
    Language: Pick English here
    Text: *
    Alias: here put the alias name you found
    Concept: leave it blank
    click on display.
    Now on this screen go to the "EDIT" menu -top of the screen-where you also see system and help menu. Follow the following path:
    Edit->Context->Change
    As soon as you will click on Change....you will see a pop up coming up with following fields:
    Country:
    Industry:
    close this pop up box without filling out anything there....just click on red x and close this pop up box.
    After you close the pop up box you will find that the "Language" field is open for editing....
    In this field choose the language you want your Alias to be translated into or leave it as English if you want English..
    In the text field...type in your new text....
    Save your work...
    That is all...no need to do anything else.....
    you can check if your Alias is being translated...
    go back to transaction SOTR_EDIT...and than choose language and put in the Alias Name
    you should see your changed text...
    I guess you are copying a FPM application...if that is the case, than you might be missing the configuration for that application...that is why you see things missing there.... try to search in forum for FPM guide....
    I hope this helps...
    Thanks...
    AS

  • How can I copy, paste, and email a web site page?

    Hello.  Basic Safari question: How can I Copy, then paste, web site content from Safari, into a document (ie. Powerpoint Presentation)?  I am interested in copying / pasting so that the content in the document looks (formatted) identical to the content on the web site?
    Thanks!
    KD
    ps.  R.I.P. S.J.

    This one kills me as well - editing phone numbers in the keypad/dialer is a pretty basic function, I could never fathom why it didn't exist.  We need to be able to place a cursor, and copy/paste part-numbers!  I'm constantly trying to paste just an area code, or an extension, or insert the country code, and I should not need to create a new number in the contact directory to do it!
    Currently I do the copy/paste editing in Notes, and then paste the corrected number into the dialer - pointless and inefficient, and contrary to the Apple philosophy of making the user experience easy and seamless...

  • How can I copy a list of email address into a group folder in contacts?

    I have a list of all the email addresses of my tennis club members. How can I copy that into a group address. At the moment I have to find each one and drag it into the folder, but I am sure there must be an easier way. Does anyone know what that is?
    Loftyjs

    I'm glad you figured it out. I was thrown off by literally interpreting the term "list" I guess
    In truth, a "mailing list" of multiple recipients, when applied to a particular email message is nothing more than a "comma de-limited list" of the addresses. Some mail clients add < > on either end of the individual addresses
    [email protected],[email protected],[email protected],etc.
    <[email protected]>,<[email protected]>,<[email protected]>,etc.
    in the old days, we would just keep a text file an add to the end as needed.
    lists are commonly used as 'Mini-databases' in Adobe(Macromedia) Director, my everyday tool for years. A list of lists, then becomes a bigger database as does a list of a (list of lists), and so on
    Too much information, methinks

  • I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?

    I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?
    Thanks

    I tried Notpod but can't get it to work.  Part of the problem, I suspect, is that I can't create a folder on my player (a SanDisk Clip+).  I also can't do this in Windows Explorer.  Whilst I can see the Clip+ in Explorer, the option to create a new folder isn't there.
    The error mesag I get in Notpod is:
    "Unhandled exception has occurred in your application.  If you click Continue, the application will ignore this error and attempt to continue.  If you click Quit the application will close immediately.
    InvalidArgument=Value of '0' is not valid for 'SelctedIndex'. Parameter name: SelectedIndex"
    Then, when I plug the Clip+ into a USB port, iTunes thinks it is my iPad - which is because, I guess, Notpod hasn't worked.
    I can drag and drop files from the Music folder where my iTunes tracks are stored onto the Clip+ and they get converted but I'd rather synchronise a Playlist from iTunes if I can.
    Thanks anyone who can help

  • I have songs missing on iTunes but they are on my iPhone. How can I copy from the iPhone into iTunes on my mac air

    I have songs missing from my iTunes on the computer but they are on my iPhone 3s and my iPad mini. How can I get them into iTunes so they are in my library.?I have the latest iTunes on my commuter. Thanks for any suggestions.

    If they were purchased from iTunes then connect the phone to your Mac's iTunes and the File > Devices > Transfer Purchases should copy them over. If they came from other sources (e.g. copied from CDs) then you will need a third-party program on your Mac to copy them back - there are some listed half-way down this page : Recover your iTunes library from your iPod or iOS device.
    If by 'missing' you mean that you have them listed in the Music part of your iTunes library but get the 'would you like to locate' message when trying to play them then you will need to delete them from there for the Transfer Purchases to work - otherwise that will see those entries in your library and assume that you still have them somewhere and not copy them back.

  • How can I copy all the info from a contact card in address book to paste into a documnent?

    How can I copy all the info from a contact card in address book to paste into a documnent?

    Tom Wolsky wrote:
    The advantage goes to FCP7 if you allow that it can copy and paste filters, audio and video, transformations, and other attributes separately.
    You can do that in FCPX too, as all the things you cited are listed separately in the inspector.
    Here's a little gotcha. Let's say you've color corrected a few clips and you've applied an effect to one and want to paste it the other clips. You switch off color correction and copy the clip. You select the other clips and paste effects. What do you think happens? The effect is applied, but the color correction is applied as well, only it's switched off as it was in the first clip, so all the color correction on the other clips is lost. Fun, eh?
    I'll try to replicate your gotcha - but no, that doesn't sound like fun at all!

  • How can I copy and paste text into Word in Acrobat 9 Pro

    How can I copy and paste text into Word from Acrobat 9 Pro?

    You might find it easier to export the file to Word under File > Export > Word in Acrobat 9.

  • How can i copy and referencing the value of a sub-total of a category into another cell?

    How can i copy and referencing the value of a sub-total of a category into another cell?

    Cells in Category  rows 'exist' only when those categories are inserted using the Reorganize table. Those cells cannot be referenced from other cells.
    If you want a category summed, you will need to do that in a cell that is still visible when the table is not sorted into categorie using the Reorganize pane. The function to use is SUMIF. You can find information regarding SUMIF (and SUMIFS) in the iWork Formulas and Functions User Gude. The guide may be downloaded using the link in the Help menu in Numbers '09.
    Regards,
    Barry

  • How can I copy a playlist into a pages or numbers document?

    How can I copy a playlist into a pages or numbers document?

    Open the Playlist.
    File>Print.
    In the Print settings, select Save as PDF
    Open Pages and a new document
    Open the PDF with Preview or Reader
    Select ALL text in the PDF
    Copy
    Paste into the Pages document.
    That's a long way to do it unless you know of a way to import PDFs into iWork.

  • How can I copy a YouTube clip into iMovie?

    How can I copy a clip from YouTube into iMovie?

    Sorry, I edited it off, i don't know if it's forum approved. It is on others and i just seen older threads here with similar answers.
    If someone says this is okay, then i'll post.

  • When I duplicate or copy slides, my custom theme images turn into question marks.  Why, and how can I copy themes with slides?

    When I duplicate or copy slides, my custom theme images turn into big grey boxes with an 'x' through them and a question mark in the middle in their new destination.  When I go look at the master slides, I see that there are now two sets of masters, one for the my custom theme and a new one just like it, but with no images.
    How can I copy (or duplicate) my slides?

    OK, got it ...  the Power ON Factory reset procedures might have changed with GB ... 
    To get to a Factory reset using the Power up method:
    1.  Power Off phone
    2. Press & Hold the HOME Button
    3. Press and Hold the Power ON button.
    You come up to the Triangle with the Exclamation mark & android guy.
    Press BOTH the Up and Down Buttons at the same time.  This brings up the Blue menu of options.
    use the Up/Down arrows to scroll thru the choices. Press the POWER Button to Select the menu item you choose.
    You can harmlessly test this and just choose to Reboot without doing anything, just to see how it works in case you ever need to do this in the future.
    edit:  It was concluded in the test group that they changed this process to align it with the new DX2 as the camera button isn't hard-wired like it is in the DX. So likely they just wanted to make this process the same for both platforms.  At least it sounds like a good reason...

Maybe you are looking for

  • Difficulty Importing a Properly Sized TIFF image (I think)

    Hello, I am having difficulty importing an appropriately sized TIFF image that is a screen shot from my film.  It seems to be a resizing issue of some sort. The TIFF image is a straight frame grab from my film, which is sized 1920 x 1080. here is the

  • Greeting card software for Mac?

    So, I switched my parents over to a Mac Mini a month ago. They really like it, but they miss having their "Greetings Workshop" greeting card software from their old Windows computer. So, I'm trying to find something they can use instead. I've found a

  • Java.lang.ClassCastException in Controller Class

    Hi All, I am getting ClassCastException in one of my Controller class where initiating OABreadCrumbsBean object. The code is as below. OABreadCrumbsBean oabreadcrumbsbean = (OABreadCrumbsBean)((OAPageLayoutBean)oawebbean).getBreadCrumbsLocator(); Thi

  • Custom Metadata

    Hi guys, I have noticed custom class metadata is now preserved in Flash Builder 4 and I was wondering which tech update introduced that - Flash Player 10 or the Flex 4 SDK? Thanks. PS: Flash Builder 4 is fantastic. Great work Adoblings.

  • Are my computer specs alright?

    Hey, I'm running Adobe Premiere CS4 and its freezing on me regularly, and the sample video screen does not payback smoothly. It worked alright for a while, but all of sudden things have gotten worse, its freezing more and more often. I don't have any