Commit ac5cebd6 authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Small bugfixes

parent 1b7f8f43
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ GenCompiler.class
Parser.class
GenCompiler.ja
GenCompiler.jar
OntologyCompiler.jar
+4 −1
Original line number Diff line number Diff line
@@ -30,13 +30,16 @@ aspect MiscUtilities {

    syn lazy String Attribute.trim() {
		String s = getValue().getSTRING_LITERAL();
		s.replaceAll("&iml;","");
		s = s.replaceAll("-","_");
		if (s.indexOf('"') == 0) {
			s = s.substring(1,s.length()-1).trim();
		} 
		if (s.indexOf('#') > -1) {
			s = s.substring(s.indexOf('#')+1,s.length()).trim();
		} 
		if (s.indexOf(';') > -1) {
			s = s.substring(s.indexOf(';')+1,s.length()).trim();
		} 
		return s.trim();
    }

+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@
  </target>

  <target name="jar" depends="build">
    <jar destfile="GenCompiler.jar" basedir="." includes="**/*.class" excludes="test/**">
    <jar destfile="OntologyCompiler.jar" basedir="." includes="**/*.class" excludes="test/**">
      <manifest>
	<attribute name="Main-Class" value="GenCompiler"/>
      </manifest>