Changeset 12291
- Timestamp:
- 12/06/09 12:07:23 (14 years ago)
- Location:
- trunk/abcl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/build.xml
r12267 r12291 182 182 <copy todir="${build.classes.dir}" preservelastmodified="yes"> 183 183 <fileset dir="${src.dir}"> 184 <patternset refid="abcl.source.lisp"/>184 <patternset refid="abcl.source.lisp.dist"/> 185 185 </fileset> 186 186 </copy> … … 203 203 <target name="abcl.fasls.uptodate"> 204 204 <uptodate property="abcl.fasls.uptodate.p" value="true"> 205 <srcfiles dir="${ build.classes.dir}">205 <srcfiles dir="${src.dir}"> 206 206 <patternset refid="abcl.source.lisp.fasls"/> 207 207 </srcfiles> 208 <mapper type="glob" from="*.lisp" to=" *.abcl"/>208 <mapper type="glob" from="*.lisp" to="${build.classes.dir}/*.abcl"/> 209 209 </uptodate> 210 210 </target> … … 217 217 failonerror="true" 218 218 classname="org.armedbear.lisp.Main"> 219 <jvmarg value="-Dabcl.home=${abcl.home.dir}"/> 219 220 <arg value="--noinit"/> 220 221 <arg value="--eval"/> 221 <arg value="(compile-system :zip nil :quit t )"/>222 <arg value="(compile-system :zip nil :quit t :output-path (symbol-name (quote ${build.classes.dir}/org/armedbear/lisp/)))"/> 222 223 </java> 223 224 </target> … … 230 231 </target> 231 232 233 <property name="abcl.home.dir" 234 value="${src.dir}/org/armedbear/lisp/"/> 232 235 <property name="abcl.version.path" 233 236 value="${build.classes.dir}/org/armedbear/lisp/version"/> … … 241 244 outputproperty="abcl.version" 242 245 classname="org.armedbear.lisp.Main" 243 logerror="yes"> <!-- Don't catch stderr output --> 246 logerror="yes"> <!-- Don't catch stderr output --> 247 <jvmarg value="-Dabcl.home=${abcl.home.dir}"/> 244 248 <arg value="--noinit"/> 245 249 <arg value="--noinform"/> … … 259 263 260 264 <target name="abcl.jar.uptodate" depends="abcl.compile"> 261 <uptodate property="abcl.jar.upt odate.p" targetfile="${abcl.jar.path}">262 263 264 265 <uptodate property="abcl.jar.upttodate.p" targetfile="${abcl.jar.path}"> 266 <srcfiles dir="${build.classes.dir}"> 267 <patternset refid="abcl.objects"/> 268 </srcfiles> 265 269 </uptodate> 266 270 </target> -
trunk/abcl/src/org/armedbear/lisp/Site.java
r12290 r12291 40 40 import java.net.URLDecoder; 41 41 42 42 43 public final class Site 43 44 { … … 45 46 46 47 static { 47 String lispHome = null; 48 URL url = Lisp.class.getResource("boot.lisp"); 49 if (url != null) { 50 String protocol = url.getProtocol(); 51 if (protocol != null && protocol.equals("file")) { 52 String path = url.getPath(); 53 try { 54 path = URLDecoder.decode(path, "UTF-8"); 55 } 56 catch (java.io.UnsupportedEncodingException uee) { 57 // can't happen: Java implementations are required to 58 // support UTF-8 59 } 60 int index = path.lastIndexOf('/'); 61 if (index >= 0) { 62 lispHome = path.substring(0, index + 1); 63 if (Utilities.isPlatformWindows) { 64 if (lispHome.length() > 0 && lispHome.charAt(0) == '/') 65 lispHome = lispHome.substring(1); 48 String lispHome = System.getProperty("abcl.home"); 49 if (lispHome == null) { 50 URL url = Lisp.class.getResource("boot.lisp"); 51 if (url != null) { 52 String protocol = url.getProtocol(); 53 if (protocol != null && protocol.equals("file")) { 54 String path = url.getPath(); 55 try { 56 path = URLDecoder.decode(path, "UTF-8"); 57 } 58 catch (java.io.UnsupportedEncodingException uee) { 59 // can't happen: Java implementations are required to 60 // support UTF-8 61 } 62 int index = path.lastIndexOf('/'); 63 if (index >= 0) { 64 lispHome = path.substring(0, index + 1); 65 if (Utilities.isPlatformWindows) { 66 if (lispHome.length() > 0 && lispHome.charAt(0) == '/') 67 lispHome = lispHome.substring(1); 68 } 66 69 } 67 70 } 68 71 } 69 } else 70 lispHome = System.getProperty("abcl.home"); 72 } 71 73 LISP_HOME = lispHome; 72 74 }
Note: See TracChangeset
for help on using the changeset viewer.