facebook

Problem creating jar file from project

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #301551 Reply

    DavyBSG
    Member

    Hi,

    I’ve seen a similar problem to this on the support forum but I tried the suggested fix and it did not resolve my issue.

    I have installed
    MyEclipse Version: 7.5 Build id: 7.5-20090609
    SubEclipse for SVN
    SubVersive for SVN

    The problem is when I export a java project to a jar file, all the svn files are packaged into the jar too. The other form said that I only need install the SVN plugins but the problem still occurs after I have done this and also restarted MyEclipse. The only way I can get around this is to actually share each project with the SVN repository and after this is done the svn files are no longer included in the jar file.

    Is there a way that I can get MyEclipse to ignore the svn files for all my projects without having to manually filters them (once subversion is installed this should not be necessary)

    Thanks for your help
    Dave

    #301579 Reply

    support-joy
    Member

    Dave,

    Can you go to Windows–>Preferences–>Java–> Compiler–>Building–>Output Folder and uncheck “Scrub output folder when cleaning projects”.
    After doing the above step, try to create the .jar file again and observe whether the jar file contains svn files.
    Please let me know.

    #301648 Reply

    DavyBSG
    Member

    Hi Joy,

    Thanks for your response. I’ve tried the above but unfortunately it still exports the svn files into the jar.

    regards
    Dave

    #301670 Reply

    support-joy
    Member

    Dave,

    Sorry to hear that you are running into issues. I’ll escalate the issue to the Dev team and they’ll get back to you.
    Mean while can you try this work around:
    1) Can you go to Windows–>Preferences–>Java–> Compiler–>Building–>Output Folder.
    2) In Filtered resources text box, type *.svn
    3) If you have any entry in the text box, add the above as a comma separated value.

    #301685 Reply

    DavyBSG
    Member

    Hi Joy,

    Thanks for your email. I followed the above suggestion but unfortunately it did not fix my issue. However, I then tried the steps below and am happy to report that the jar file is now being built without the svn files.

    1. Create a new Java project
    2. Check out files from SVN
    3. Check box to scrub output folder when cleaning project
    4. Remove “.svn” from filter resources list
    5. Rebuild all projects
    6. Restart MyEclipse (Probably not needed)

    So it looks like any projects that were created before I installed the SVN plugins continue to include the .svn files as part of the exported jar but any new projects that I create after installing the plugins are behaving correctly.

    I will just have to remove and recreate all my projects now and everything should be fine.
    Thanks for your help

    Best regards
    David

    #301686 Reply

    support-joy
    Member

    David,

    Good to hear that you are all set. 🙂
    Once again sorry for the inconvenience.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Problem creating jar file from project

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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