Code Search for Developers
 
 
  

build.xml from Kneobase at Krugle


Show build.xml syntax highlighted

<?xml version="1.0"?>

<project name="WindowsExecutable" default="build" basedir=".">
		
	<import file="../KneobaseCommons/tasks.xml"/>
	<property file="../Demo-EmbeddedServlet/project.properties"/> <!-- jar.name -->
	<property file="../Demo-EmbeddedServletWindowed/project.properties"/> <!-- jar.name -->
	
	<taskdef name="jsmooth" classpath="${lib}/jsmoothgen-ant.jar" classname="net.charabia.jsmoothgen.ant.JSmoothGen"/> 

	<target name="buildDependecies">
		<ant dir="../Demo-EmbeddedServletWindowed" inheritall="false" target="build"/>
	</target>
	
	<property name="bundledJVMPath"			value="..\build\temp\jre"/>
	<property name="executableName-console" value="..\build\temp\kneobase.exe"/>
	<property name="executableName-gui"		value="..\build\temp\kneobase-gui.exe"/>
	<property name="iconLocation"			value="..\src\kneobase.png"/>
	<property name="jarLocation-console"	value="..\build\temp\${Demo-EmbeddedServlet.jar.name}"/>	
	<property name="jarLocation-gui"		value="..\build\temp\${Demo-EmbeddedServletWindowed.jar.name}"/>	
	<property name="mainClassName-console"	value="com.kneobase.demo.EmbeddedServlet"/>	
	<property name="mainClassName-gui"		value="com.kneobase.demo.EmbeddedServletWindowed"/>	
	
	<target name="jsmooth">
		<!-- FIXME there's a lot of hardcoded stuff -->
		<mkdir dir="${build}/temp"/>
		<copy todir="${build}/temp">
			<fileset dir="../Demo-EmbeddedServlet/${build.dist}" />
			<fileset dir="../Demo-EmbeddedServletWindowed/${build.dist}" />
		</copy>

		<copy file="${src}/kneobase.jsmooth" todir="${build}"/>
		<copy file="${src}/kneobase-gui.jsmooth" todir="${build}"/>
			
		<replace file="${build}/kneobase.jsmooth"
			token="&#60;bundledJVMPath&#62;REPLACED DURNING BUILD&#60;/bundledJVMPath&#62;"
			value="&#60;bundledJVMPath&#62;${bundledJVMPath}&#60;/bundledJVMPath&#62;"/>
		<replace file="${build}/kneobase-gui.jsmooth"
			token="&#60;bundledJVMPath&#62;REPLACED DURNING BUILD&#60;/bundledJVMPath&#62;"
			value="&#60;bundledJVMPath&#62;${bundledJVMPath}&#60;/bundledJVMPath&#62;"/>	

		<replace file="${build}/kneobase.jsmooth"
			token="&#60;executableName&#62;REPLACED DURNING BUILD&#60;/executableName&#62;"
			value="&#60;executableName&#62;${executableName-console}&#60;/executableName&#62;"/>
		<replace file="${build}/kneobase-gui.jsmooth"
			token="&#60;executableName&#62;REPLACED DURNING BUILD&#60;/executableName&#62;"
			value="&#60;executableName&#62;${executableName-gui}&#60;/executableName&#62;"/>

		<replace file="${build}/kneobase.jsmooth"
			token="&#60;iconLocation&#62;REPLACED DURNING BUILD&#60;/iconLocation&#62;"
			value="&#60;iconLocation&#62;${iconLocation}&#60;/iconLocation&#62;"/>
		<replace file="${build}/kneobase-gui.jsmooth"
			token="&#60;iconLocation&#62;REPLACED DURNING BUILD&#60;/iconLocation&#62;"
			value="&#60;iconLocation&#62;${iconLocation}&#60;/iconLocation&#62;"/>

		<replace file="${build}/kneobase.jsmooth"
			token="&#60;jarLocation&#62;REPLACED DURNING BUILD&#60;/jarLocation&#62;"
			value="&#60;jarLocation&#62;${jarLocation-console}&#60;/jarLocation&#62;"/>
		<replace file="${build}/kneobase-gui.jsmooth"
			token="&#60;jarLocation&#62;REPLACED DURNING BUILD&#60;/jarLocation&#62;"
			value="&#60;jarLocation&#62;${jarLocation-gui}&#60;/jarLocation&#62;"/>

		<replace file="${build}/kneobase.jsmooth"
			token="&#60;mainClassName&#62;REPLACED DURNING BUILD&#60;/mainClassName&#62;"
			value="&#60;mainClassName&#62;${mainClassName-console}&#60;/mainClassName&#62;"/>
		<replace file="${build}/kneobase-gui.jsmooth"
			token="&#60;mainClassName&#62;REPLACED DURNING BUILD&#60;/mainClassName&#62;"
			value="&#60;mainClassName&#62;${mainClassName-gui}&#60;/mainClassName&#62;"/>		
		
		<jsmooth project="${build}/kneobase.jsmooth" skeletonroot="jsmooth/skeletons" />
		<jsmooth project="${build}/kneobase-gui.jsmooth" skeletonroot="jsmooth/skeletons" />

		<copy file="${build}/temp/kneobase.exe" todir="${build.dist}"/>
		<copy file="${build}/temp/kneobase-gui.exe" todir="${build.dist}"/>
	</target>

	<target name="build" depends="clean, buildDependecies, jsmooth"/>
</project>



See more files for this project here

Kneobase

Kneobase is an enterprise search engine, based upon the Lucene search engine and the Spring framework. It allows to perform full-text search across many different content sources. It is highly adaptable out-of-the-box and has a pluggable architecture.

Project homepage: http://sourceforge.net/projects/kneobase
Programming language(s): Java,XML
License: other

  docs/
    project-info.txt
  jsmooth/
    skeletons/
      console-wrapper/
        consolewrapper.exe
        description.skel
      windowed-wrapper/
        description.skel
        jwrap.exe
  lib/
    jsmoothgen-ant.jar
  src/
    kneobase-gui.jsmooth
    kneobase.jsmooth
    kneobase.png
  .classpath
  .project
  build.xml