Commit ac5cebd6 authored by Anders Nilsson's avatar Anders Nilsson

Small bugfixes

parent 1b7f8f43
......@@ -5,3 +5,4 @@ GenCompiler.class
Parser.class
GenCompiler.ja
GenCompiler.jar
OntologyCompiler.jar
......@@ -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();
}
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment