Changeset 14592


Ignore:
Timestamp:
01/03/14 17:56:42 (7 years ago)
Author:
Mark Evenson
Message:

SLIME configuation under NetBeans? working again.

To use slime, ensure the directory "~/.asdf-install-dir/systems"
exits, and symlink swank.asd from a SLIME installation into it.
Start the "slime" Netbeans configuration: when you see the "Swank
started at port: 4005." message, you may then use Emacs M-x
slime-connect to attach to the ABCL instance running in Netbeans.

An improvement might to be to randomize the port given to
SWANK:CREATE-SERVER somehow.

Updated artifacts to Netbeans 7.4.

Location:
trunk/abcl/nbproject
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/nbproject/build-impl.xml

    r14572 r14592  
    5555    </target>
    5656    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
     57        <property name="platform.java" value="${java.home}/bin/java"/>
    5758        <available file="${manifest.file}" property="manifest.available"/>
    5859        <condition property="splashscreen.available">
     
    7273            </and>
    7374        </condition>
    74         <condition property="manifest.available+main.class">
    75             <and>
    76                 <isset property="manifest.available"/>
    77                 <isset property="main.class.available"/>
     75        <condition property="profile.available">
     76            <and>
     77                <isset property="javac.profile"/>
     78                <length length="0" string="${javac.profile}" when="greater"/>
     79                <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
    7880            </and>
    7981        </condition>
     
    9294            </and>
    9395        </condition>
    94         <condition property="manifest.available+main.class+mkdist.available">
    95             <and>
    96                 <istrue value="${manifest.available+main.class}"/>
    97                 <isset property="do.mkdist"/>
    98             </and>
    99         </condition>
    10096        <condition property="do.archive+manifest.available">
    10197            <and>
     
    116112            </and>
    117113        </condition>
    118         <condition property="do.archive+manifest.available+main.class">
    119             <and>
    120                 <istrue value="${manifest.available+main.class}"/>
     114        <condition property="do.archive+profile.available">
     115            <and>
     116                <isset property="profile.available"/>
    121117                <istrue value="${do.archive}"/>
    122118            </and>
    123         </condition>
    124         <condition property="manifest.available-mkdist.available">
    125             <or>
    126                 <istrue value="${manifest.available}"/>
    127                 <isset property="do.mkdist"/>
    128             </or>
    129         </condition>
    130         <condition property="manifest.available+main.class-mkdist.available">
    131             <or>
    132                 <istrue value="${manifest.available+main.class}"/>
    133                 <isset property="do.mkdist"/>
    134             </or>
    135119        </condition>
    136120        <condition property="have.tests">
     
    187171        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
    188172        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
    189             <length length="0" string="${endorsed.classpath}" when="greater"/>
     173            <and>
     174                <isset property="endorsed.classpath"/>
     175                <not>
     176                    <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
     177                </not>
     178            </and>
     179        </condition>
     180        <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
     181            <isset property="profile.available"/>
    190182        </condition>
    191183        <condition else="false" property="jdkBug6558476">
     
    276268                    </classpath>
    277269                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
     270                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
    278271                    <compilerarg line="${javac.compilerargs}"/>
    279272                    <compilerarg value="-processorpath"/>
     
    315308                    </classpath>
    316309                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
     310                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
    317311                    <compilerarg line="${javac.compilerargs}"/>
    318312                    <customize/>
     
    447441                </union>
    448442                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
    449                 <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="abcl" testname="TestNG tests" workingDir="${work.dir}">
     443                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="abcl" testname="TestNG tests" workingDir="${work.dir}">
    450444                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
    451445                    <propertyset>
     
    838832                </pathconvert>
    839833                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
    840                 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
    841                     <fileset dir="${build.classes.dir}"/>
     834                <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
     835                    <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
    842836                    <manifest>
    843837                        <attribute name="Class-Path" value="${jar.classpath}"/>
     
    851845        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
    852846            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
    853                 <j2seproject1:fileset dir="${build.classes.dir}"/>
     847                <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
    854848            </jar>
    855849        </presetdef>
     
    967961        <!-- You can override this target in the ../build.xml file. -->
    968962    </target>
    969     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
    970         <j2seproject1:jar/>
    971     </target>
    972     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
    973         <j2seproject1:jar manifest="${manifest.file}"/>
    974     </target>
    975     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
    976         <j2seproject1:jar manifest="${manifest.file}">
    977             <j2seproject1:manifest>
    978                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
    979             </j2seproject1:manifest>
    980         </j2seproject1:jar>
     963    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
     964        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
     965        <touch file="${tmp.manifest.file}" verbose="false"/>
     966    </target>
     967    <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
     968        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
     969        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
     970    </target>
     971    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
     972        <manifest file="${tmp.manifest.file}" mode="update">
     973            <attribute name="Main-Class" value="${main.class}"/>
     974        </manifest>
     975    </target>
     976    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
     977        <manifest file="${tmp.manifest.file}" mode="update">
     978            <attribute name="Profile" value="${javac.profile}"/>
     979        </manifest>
     980    </target>
     981    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
     982        <basename file="${application.splash}" property="splashscreen.basename"/>
     983        <mkdir dir="${build.classes.dir}/META-INF"/>
     984        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
     985        <manifest file="${tmp.manifest.file}" mode="update">
     986            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
     987        </manifest>
     988    </target>
     989    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
     990        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
    981991        <echo level="info">To run this application from the command line without Ant, try:</echo>
     992        <property location="${dist.jar}" name="dist.jar.resolved"/>
     993        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
     994    </target>
     995    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
     996        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
    982997        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
    983998        <property location="${dist.jar}" name="dist.jar.resolved"/>
     
    9861001            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
    9871002        </pathconvert>
    988         <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
    989     </target>
    990     <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
    991         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
    992         <touch file="${tmp.manifest.file}" verbose="false"/>
    993     </target>
    994     <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
    995         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
    996         <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
    997     </target>
    998     <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
    999         <manifest file="${tmp.manifest.file}" mode="update">
    1000             <attribute name="Main-Class" value="${main.class}"/>
    1001         </manifest>
    1002     </target>
    1003     <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
    1004         <basename file="${application.splash}" property="splashscreen.basename"/>
    1005         <mkdir dir="${build.classes.dir}/META-INF"/>
    1006         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
    1007         <manifest file="${tmp.manifest.file}" mode="update">
    1008             <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
    1009         </manifest>
    1010     </target>
    1011     <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
    1012         <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
    1013         <echo level="info">To run this application from the command line without Ant, try:</echo>
    1014         <property location="${dist.jar}" name="dist.jar.resolved"/>
    1015         <echo level="info">java -jar "${dist.jar.resolved}"</echo>
    1016     </target>
    1017     <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
     1003        <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
     1004            <isset property="main.class.available"/>
     1005        </condition>
     1006        <condition else="debug" property="jar.usage.level" value="info">
     1007            <isset property="main.class.available"/>
     1008        </condition>
     1009        <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
     1010    </target>
     1011    <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
    10181012        <delete>
    10191013            <fileset file="${tmp.manifest.file}"/>
    10201014        </delete>
    10211015    </target>
    1022     <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
     1016    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
     1017    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
    10231018    <target name="-post-jar">
    10241019        <!-- Empty placeholder for easier customization. -->
    10251020        <!-- You can override this target in the ../build.xml file. -->
    10261021    </target>
    1027     <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
     1022    <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
     1023    <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
    10281024    <!--
    10291025                =================
  • trunk/abcl/nbproject/genfiles.properties

    r14572 r14592  
    55# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    66nbproject/build-impl.xml.data.CRC32=742204ce
    7 nbproject/build-impl.xml.script.CRC32=24124b35
    8 nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
     7nbproject/build-impl.xml.script.CRC32=364c80b9
     8nbproject/build-impl.xml.stylesheet.CRC32=5a01deb7@1.68.1.46
    99nbproject/profiler-build-impl.xml.data.CRC32=71623fcd
    1010nbproject/profiler-build-impl.xml.script.CRC32=abda56ed
  • trunk/abcl/nbproject/private/configs/slime.properties

    r12146 r14592  
    1 application.args=--eval "(require (quote asdf))" --eval "(asdf:operate (quote asdf:load-op) :swank)" --eval "(swank:create-server)"
     1application.args=--eval "(require (quote asdf))" --eval '(push "~/.asdf-install-dir/systems/" asdf/find-system:*central-registry*)' --eval "(asdf:load-system :swank)" --eval "(swank:create-server)"
  • trunk/abcl/nbproject/project.properties

    r12449 r14592  
     1annotation.processing.enabled=true
     2annotation.processing.enabled.in.editor=false
     3annotation.processing.processors.list=
     4annotation.processing.run.all.processors=true
    15application.title=abcl
    26application.vendor=
     
    2125endorsed.classpath=
    2226excludes=
     27file.reference.abcl-contrib.jar=dist/abcl-contrib.jar
    2328file.reference.abcl-src=src
    2429includes=org/armedbear/lisp/**/*.java,org/armedbear/lisp/**/*.lisp
     
    2833javac.compilerargs=
    2934javac.deprecation=false
     35javac.processorpath=\
     36    ${javac.classpath}
    3037javac.source=1.5
    3138javac.target=1.5
     
    5562manifest.file=src/manifest-abcl
    5663meta.inf.dir=${src.dir}/META-INF
     64mkdist.disabled=false
    5765platform.active=default_platform
    5866run.classpath=\
    5967    ${build.classes.dir}:\
    60     ${javac.classpath}
     68    ${javac.classpath}:\
     69    ${file.reference.abcl-contrib.jar}
    6170# Space-separated list of JVM arguments used when running the project
    6271# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
Note: See TracChangeset for help on using the changeset viewer.