from the command line (question at end):

[EMAIL PROTECTED] java]$
[EMAIL PROTECTED] java]$ cat build.xml -n
     1  <project name="jamocha" default="package">
     2
     3          <import file="jamochaBuild/properties.xml" />
     4
     5          <target name="clean">
     6                  <delete dir="${outputDir}" />
     7          </target>
     8
     9          <target name="prepare" depends="clean">
    10                  <mkdir dir="${outputDir}" />
    11          </target>
    12
    13          <echo message="classpath=${cp}" />
    14
    15          <target name="compile" depends="prepare">
    16                  <javac
    17                          srcdir          ="${sourceDir}"
    18                          destdir         ="${outputDir}">
    19                          <classpath>
    20                                  <path refid="jamocha.path" />
    21                          </classpath>
    22                  </javac>
    23          </target>
    24
    25
    26          <tstamp>
    27                  <format property="timestamp.isoformat"
    28                  pattern="yyyy-MM-dd'T'HH:mm:ss" locale="it" />
    29          </tstamp>
    30
    31          <target name="package" depends="compile">
    32                  <jar jarfile="${outputDir}/${mainClass}.jar"
basedir="${outputDir}" >
    33                          <manifest>
    34                                  <attribute name="Main-Class"
value="${pkgPath}${mainClass}"/>
    35                                  <attribute name="Built-On"
value="${timestamp.isoformat}" />
    36                                  <attribute name="Author"
value="Thufir Hawat" />
    37                                  <attribute name="Web Page"
value="http://thufir.lecktronix.net/"; />
    38                                  <attribute name="Inspiration"
value="http://www.jamochamud.org/"; />
    39                                  <attribute name="NAME"
value="Test Plug-in" />
    40                                  <attribute name="VERSION"
value="1.0" />
    41                                  <attribute name="JVM"
value="1.1" />
    42                                  <attribute name="JMUDVER"
value="04-01-12" />
    43                                  <attribute name="LICENSE"
value="none" />
    44                                  <attribute name="README"
value="none" />
    45                          </manifest>
    46                  </jar>
    47          </target>
    48  </project>
[EMAIL PROTECTED] java]$ ant
Buildfile: build.xml
Overriding previous definition of reference to jamocha.path
     [echo] classpath=/home/thufir/java/lib/JamochaMUD.jar

clean:
   [delete] Deleting directory /home/thufir/java/bin

prepare:
    [mkdir] Created dir: /home/thufir/java/bin

compile:
    [javac] Compiling 1 source file to /home/thufir/java/bin

package:

BUILD FAILED
/home/thufir/java/build.xml:32: Specify the section name using the
"name" attribute of the <section> element rather than using a "Name"
manifest attribute

Total time: 5 seconds
[EMAIL PROTECTED] java]$



According to <http://www.jamochamud.org/PlugInDocs.html>, however, the
attribute "NAME" is required in the manifest, like so:

"NAME: Test Plug-in (Name of the plug-in)
VERSION: 1.0 (Version of the plug-in)
PLUGCLASS: TestPlugIn (Name of the main Java class of the plug-in)
JVM: 1.1 (Minimum Java Virtual Machine needed to use the plug-in)
JMUDVER: 04-01-12 (Minimum version of JamochaMUD needed... numeric
portion only)
LICENSE: TestPlugInDir\COPYING (location in the .jpa archive of the
license file)
README: TestPlugInDir\readme.txt (any special instructions for the
user)

Currently most of these tags are not followed by the installer, but
they are planned to be implemented, so it is important to maintain
them for forward-compatibility."



I don't really see why, since it's the same as the Main-Class, but
that's what's required near as I can tell.  Is there a way to get ant
to make an attribute named "NAME" for the manifest?  I'd like to just
follow what's on that page, regardless of whether it makes sense...

Or, I might be misunderstanding the error message!


Thanks,

Thufir

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to