facebook

Adding a resources directory to project

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #256843 Reply

    smclurkin
    Member

    I would like to add a resources directory that would copy all files and directories in to the base of the jar/war. Is there a way to tell MyEclipse how to do this? I was trying with the package configurations but that didn’t seem to work.

    Thanks

    Steven

    #256846 Reply

    Riyad Kalla
    Member

    Steven,
    I’m going to need some more information explaining what you are trying to do. Your WAR is created by MyEclipse from the root of your WebRoot directory, but creating a JAR (I’m assuming out of a Java Project?) is different, that’s from the root of your build output dir, so putting something in the root of your /src dir will do the trick.

    #256850 Reply

    smclurkin
    Member

    I setup a project like the following:

    prj/
    src/main/java/
    com……..
    src/main/resources/
    META-INF/
    some.properties
    src/main/webapp
    the web stuff

    I want all the files in the resources directory to go under the base of the project.

    Kinda like the default Maven Build does.

    Steven

    #256861 Reply

    Riyad Kalla
    Member

    Oh, I don’t think you can do that, atleast I wouldn’t have any way to suggest to you on how to do what without an Ant script or something.

    #256886 Reply

    smclurkin
    Member

    Ok Thanks,

    Steven

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Adding a resources directory to project

You must be logged in to post in the forum log in