Why not just create an external tool to run the jar command?  That's what I do.  I've 
attached my .xml file which you can drop into your idea\config\tools directory.
The tool will put the jar into a directory called \extensions.  The name of the jar 
will be <name of project>.jar
There's also a tool to jar up your source code.  Which will create \extensions\<name 
of project>Src.jar

Kirk Woll wrote:
> What strikes me about this feature request and those like it is not that 
> they're a bad idea and therefore a waste of time.  Rather, they are 
> ideas that are not good uses of the IntelliJ team's time. However, ALL 
> of these issues, and each and every one like them would be rendered 
> completely moot by an open API.   Personally I think it a fine notion to 
> have my IDE know how to make a JAR file without my having to go learn 
> some external tool. However, I agree with most of you that IntelliJ 
> should not waste their time with that.  I am as yet unclear on the 
> future plans with respect to the open API.  Last I heard they were 
> focusing on allowing arbitrary version control integration. That 
> interests me not even a tiny bit.  Has there been any (recent) statement 
> of intent with respect to this?
> 
> Kirk
> 
> Hani Suleiman wrote:
> 
>> We could keep walking down that path, I'd like IDEA to have a J2EE
>> deployment wizard too, and to generate .ear and .war files for me. I'd 
>> also
>> like it to automatically create the appropriate manifests. I wouldn't 
>> object
>> to it IDEA also doing this all in the background, and monitoring what 
>> I do
>> and deciding it's time for me to make a jar file.
>>
>> On 20/3/02 4:58 pm, "Patrick M. Ansari" <[EMAIL PROTECTED]> 
>> wrote:
>>
>>> Personally, I also think this is a good idea. There are some cases where
>>> you don't want to use Ant but still want to create Jars.
>>>
>>> Regards,
>>>
>>> Patrick M. Ansari
>>> [EMAIL PROTECTED]
>>>
>>> -----------------------------------
>>> 186 East Road, R5.1
>>> CB1 1BG Cambridge, Cambridgeshire
>>> United Kingdom
>>> Phone: +44 (0) 1223 475578
>>> -----------------------------------
>>>
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>> On Behalf Of Slomcenski, Robert J
>>> Sent: 20 March 2002 21:35
>>> To: '[EMAIL PROTECTED]'
>>> Subject: RE: [Eap-list] Feature request: jar tool
>>>
>>> I can use ANT to generate a jar file and I can use ANT to generate
>>> javadoc, too.
>>>
>>> It just seems inconsistent for IDEA to have a specific menu option
>>> for "Generate javadoc..." but not one for "Generate jar...".
>>>
>>> Bob Slomcenski
>>>
>>> PSG/PSSU/S&SO/MPSO
>>> 800 Phillips Road (129-35A), Webster, NY 14580
>>> Phone:  (585) 422-2494      Intelnet:  8*222-2494
>>> E-Mail:  [EMAIL PROTECTED]
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Patrick M. Ansari [mailto:[EMAIL PROTECTED]]
>>> Sent: Wednesday, March 20, 2002 12:12 PM
>>> To: [EMAIL PROTECTED]
>>> Subject: RE: [Eap-list] Feature request: jar tool
>>>
>>>
>>> Just use ANT to build the JARs
>>>
>>> Regards,
>>>
>>> Patrick M. Ansari
>>> [EMAIL PROTECTED]
>>>
>>> -----------------------------------
>>> 186 East Road, R5.1
>>> CB1 1BG Cambridge, Cambridgeshire
>>> United Kingdom
>>> Phone: +44 (0) 1223 475578
>>> -----------------------------------
>>>
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>> On Behalf Of Slomcenski, Robert J
>>> Sent: 20 March 2002 16:39
>>> To: '[EMAIL PROTECTED]'
>>> Subject: [Eap-list] Feature request: jar tool
>>>
>>> I am new to IDEA and am just getting familiar with the environment.
>>> Is there an option, external tool, or other method to invoke the
>>> jar command?
>>> IDEA has a javadoc builder, but seems to be lacking a jar builder.
>>>
>>> Bob Slomcenski
>>>
>>> PSG/PSSU/S&SO/MPSO
>>> 800 Phillips Road (129-35A), Webster, NY 14580
>>> Phone:  (585) 422-2494      Intelnet:  8*222-2494
>>> E-Mail:  [EMAIL PROTECTED]
>>>
>>> _______________________________________________
>>> Eap-list mailing list
>>> [EMAIL PROTECTED]
>>> http://www.intellij.com/mailman/listinfo/eap-list
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Eap-list mailing list
>>> [EMAIL PROTECTED]
>>> http://www.intellij.com/mailman/listinfo/eap-list
>>>
>>> _______________________________________________
>>> Eap-list mailing list
>>> [EMAIL PROTECTED]
>>> http://www.intellij.com/mailman/listinfo/eap-list
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Eap-list mailing list
>>> [EMAIL PROTECTED]
>>> http://www.intellij.com/mailman/listinfo/eap-list
>>>
>>
>>
>> _______________________________________________
>> Eap-list mailing list
>> [EMAIL PROTECTED]
>> http://www.intellij.com/mailman/listinfo/eap-list
>>
>>
> 
> 
> 
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
> 
> 

<?xml version="1.0" encoding="UTF-8"?>
<toolSet>
  <tool description="Put all files in the output directory of the current project into a jar file in \extensions" disabled="false" name="jar" showInEditor="true" showInMainMenu="true" showInProject="true" showInSearchPopup="true" synchronizeAfterRun="true" useConsole="true">
    <exec>
      <option name="COMMAND" value="jar" />
      <option name="PARAMETERS" value="-cfv &quot;\extensions\$ProjectName$.jar&quot; ." />
      <option name="WORKING_DIRECTORY" value="$OutputPath$" />
    </exec>
  </tool>
  <tool description="Put all files in the source directory of the current project into a jar file in \extensions" disabled="false" name="jarSrc" showInEditor="true" showInMainMenu="true" showInProject="true" showInSearchPopup="true" synchronizeAfterRun="true" useConsole="true">
    <exec>
      <option name="COMMAND" value="jar" />
      <option name="PARAMETERS" value="-cfv &quot;\extensions\$ProjectName$Src.jar&quot; ." />
      <option name="WORKING_DIRECTORY" value="$Projectpath$/src" />
    </exec>
  </tool>
  <tool description="runs RMIC" disabled="false" name="rmic" showInEditor="true" showInMainMenu="true" showInProject="true" showInSearchPopup="true" synchronizeAfterRun="true" useConsole="true">
    <exec>
      <option name="COMMAND" value="$JDKPath$\bin\rmic" />
      <option name="PARAMETERS" value="-verbose -v1.2 -classpath $Classpath$ $FileClass$" />
      <option name="WORKING_DIRECTORY" value="$OutputPath$" />
    </exec>
  </tool>
</toolSet>

Reply via email to