[need help] eclipse -> export jar

Discussion in 'Plugin Development' started by MG127, Feb 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    MG127

    is there a way to set the name of the target jar file per project?
    every time i export a project it has the name of the last exported jar file, but i need it project specific.
     
  2. Offline

    Sabersamus

    yeah you specify the name under "Select the export destination"

    JAR file:[path] + <NAME>.jar

    EDIT: example : C:\users\<myname>\desktop\Basic.jar
     
    fromgate likes this.
  3. The easiest way to do it is to make eclipse create a "jardesc" file, which contains information about the export settings. You save it inside of your project, and when you want to export it, you just double-click it and the filled out export dialog will open up, and you only need to click "Finish".

    To create such a file, just go through the regular exporting process - make sure you selected every setting as you want. Now when you are at the step where you select the resources to export, the options and the export destination, instead of clicking "Finish", click "Next >".
    Then, at the bottom of the next step, activate the checkbox saying "Save the description of this JAR in the workspace". Select a destination to save it to (I recommend a location inside your current project, but outside the src folder, so it won't export itself to the jar).
    Then you just have to double-click it from within Eclipse to get your finished export dialog. Independently exporting with 2 clicks, I don't think it can be easier (without maven, that is).
     
    fromgate likes this.
  4. Offline

    MG127

Thread Status:
Not open for further replies.

Share This Page