From: Jiger <jig...@us...> - 2005-12-30 06:28:53
|
Update of /cvsroot/jedit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24514 Modified Files: build.xml Log Message: FastOpen 1.2 features : 1. FastOpen now maintains an Index of files instead of querying the sources each time. An Index Manager thread will update the index in the background from time-to-time(configurable via Global Options). This immensely speeds up FastOpen. 2. File search string entered during the time the Index is being created(generally on first execution of FastOpen), is buffered and is automatically executed when indexing process is completed. So during initial index building esp. of large projects be patient. 3. Incase two files are not open, then the one which is Project file take precedence(If Sorting is enabled). 4. Fixed a rare case of Same file (1 appearing in Project and the other from Recent List before the Project was created) both getting displayed because sources were returning different character case namely ProjectViewer returning c:\directory\myfile.txt and Recent file returning C:\directory\myfile.txt. 5. Fixed a rare NPE case if there was a RegexpException 6. Limited the filename search pattern to ignore multiline selections to avoid mistakenly invoking FastOpen on a large selection and FastOpen having to go and search an invain pattern. 7.Multi-File open ability added. 8. Projects in the Project List dropdown are now sorted in case-insensitive order. Index: build.xml =================================================================== RCS file: /cvsroot/jedit/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- build.xml 2 Jan 2002 06:00:22 -0000 1.2 +++ build.xml 30 Dec 2005 06:28:44 -0000 1.3 @@ -1,44 +1,110 @@ -<?xml version="1.0" ?> -<project name="jEdit" default="describe" basedir="."> - <!-- property name="ant.full.path" value="-overide-in-ant-command-line" --> - <target name="describe"> - <echo message="The script that builds the plugin directory requires the" /> - <echo message="ant.full.path property to be set." /> - <echo message="In order to build this tree successfully please execute ant like:" /> - <echo message="$$ ant -Dant.full.path=/full/path/to/ant/bin/ant build" /> - <echo message=" " /> - <echo message=" " /> - <echo message="This will clean the jEdit and plugin directories:" /> - <echo message="$$ ant -Dant.full.path=/full/path/to/ant/bin/ant clean" /> - <echo message=" " /> - <echo message=" " /> - <echo message="Those are the only targets implemented. But eventually the build" /> - <echo message="target will construct a complete jEdit install directory right here." /> - </target> - <target name="prepare"> - </target> - <target name="build" depends="prepare,jEdit,plugins"> - </target> - <target name="dist" depends="build"> - </target> - <target name="javadocs" depends="build"> - </target> - <target name="clean"> - <ant dir="jEdit" target="clean" /> - <ant dir="plugins" target="clean" /> - </target> - <target name="jEdit" depends="prepare"> - <ant dir="jEdit" target="dist-13"/> - <copy file="jEdit/jedit.jar" toDir="." /> - </target> - <target name="jEdit-14" depends="prepare"> - <ant dir="jEdit" target="dist"/> - <copy file="jEdit/jedit.jar" toDir="." /> - </target> - <target name="plugins" depends="prepare"> - <ant dir="plugins"> - <property name="ant.full.path" value="${ant.full.path}" /> - </ant> - </target> -</project> - +<?xml version="1.0"?> + +<!-- + This is a build.xml file for building the FastOpen plugin. + + The 'dist' target compiles the plugin and creates the JAR file. + Before running the 'dist' target, you will need to generate the + documentation using one of these two targets: + + - 'docs-xalan': Creates documentation using the Xalan XSLT processor + - 'docs-xsltproc': Creates documentation using the xsltproc tool + + To use it for building your own plugin, make these changes: + + - Change definition of 'jar.name' to the name of your plugin's JAR file + - If necessary, add any dependencies to the 'project.class.path' + definition + - If necessary, change the list of files in the 'dist' targtet + - If necessary, change the 'docs-xalan' and 'docs-xsltproc' targets + accordingly. +--> + +<project name="FastOpen" default="dist" basedir="."> + + <property file="build.properties"/> + + <property name="jar.name" value="${ant.project.name}.jar"/> + <property name="version" value="1.2"/> + <property name="srcfile" value="${ant.project.name}_src_${version}.zip"/> + + <property name="src.dir" value="."/> + <property name="build.dir" value="build"/> + <property name="install.dir" value="."/> + + <property name="jedit.install.dir" value=".."/> + <property name="jedit.jars.dir" value="${jedit.install.dir}/jars"/> + + <path id="project.class.path"> + <pathelement location="${jedit.jars.dir}/ProjectViewer.jar"/> + <pathelement location="${jedit.install.dir}/jedit.jar"/> + </path> + + + <target name="init"> + <mkdir dir="${build.dir}"/> + </target> + + + <target name="compile" depends="init"> + <javac + srcdir="${src.dir}" + destdir="${build.dir}" + deprecation="on" + debug="on" + source="1.4" + includeJavaRuntime="no" + nowarn="true" + > + <classpath refid="project.class.path"/> + </javac> + </target> + + + <target name="dist" depends="compile"> + <!-- <mkdir dir="${install.dir}"/> --> + <jar jarfile="${jedit.jars.dir}/${jar.name}"> + <fileset dir="${build.dir}"/> + <fileset dir="${src.dir}"> + <include name="actions.xml"/> + <include name="dockables.xml"/> + <include name="**/*.props"/> + <include name="**/*.html"/> + <include name="**/*.gif"/> + </fileset> + </jar> + </target> + + <target name="src_dist" depends="init"> + <zip zipfile="${srcfile}"> + <fileset dir="${src.dir}"> + <include name="**/*.java"/> + <include name="**/*.properties"/> + <include name="**/*.props"/> + <include name="**/*.xml"/> + <include name="**/*.html"/> + <include name="**/*.htm"/> + <exclude name="build/**"/> + <exclude name="${srcfile}"/> + <exclude name="build.properties"/> + </fileset> + </zip> + </target> + + <target name="clean"> + <delete dir="${build.dir}"/> + <delete file="${srcfile}"/> + <delete> + <fileset dir="." includes="**/*~" defaultexcludes="no"/> + <!--fileset dir="." includes="**/*.html" defaultexcludes="no"/--> + </delete> + </target> + + <!-- Generate tags using 'ctags' program from ctags.sourceforge.net --> + <target name="tags"> + <exec executable="ctags"> + <arg value="-R" /> + <arg path="." /> + </exec> + </target> +</project> |