Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Build game!

  1. #1
    New to the CF scene
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Build game!

    Hey I am new here and I am getting this error when I try to build my game I am getting:

    BUILD FAILED
    /home/localhost/trunk/build.xml:38: The following error occurred while executing this line:
    /home/localhost/trunk/build-base.xml:44: The following error occurred while executing this line:
    /home/localhost/trunk/kavalok-build/build-all.xml:102: The markup in the document following the root element must be well-formed.

    build.xml
    Code:
    <project
    	default="build-all">
        <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask">
            <classpath>
            	<pathelement location="${basedir}/kavalok-build/svnant.jar" />
                <pathelement location="${basedir}/kavalok-build/svnClientAdapter.jar" />
                <pathelement location="${basedir}/kavalok-build/svnjavahl.jar" />
                <pathelement location="${basedir}/kavalok-build/svnkit.jar" />
            </classpath>
        </taskdef>
    	<target name="get-svn-revision">
    	   <svn>
    	      <status path="" revisionProperty="svn.revision"/>
    	   </svn>
    		<echo>Building Version: ${svn.revision}</echo>
    	</target>
     
    	<property file="kavalok.properties"/>
    	
    	<target name="update-from-svn">
    		<ant antfile="build-base.xml" target="update-from-svn">
    		</ant>
    	</target>
    	<target name="create-database">
    		<ant antfile="build-base.xml" target="create-database">
    		</ant>
    	</target>
    	<target name="build-all-release">
    		<ant antfile="build-base.xml" target="build-all-release">
    		</ant>
    	</target>
    	<target name="build-all">
    		<antcall target="get-svn-revision"/>
    		<exec executable="sh">
    			<arg value="/etc/init.d/red5"/>
    			<arg value="stop"/>
    		</exec>
    		<ant antfile="build-base.xml" target="build-all">
    		</ant>
    		<exec executable="sh">
    			<arg value="/etc/init.d/red5"/>
    			<arg value="start"/>
    		</exec>
    	</target>
    	<target name="build-flash">
    		<antcall target="get-svn-revision"/>
    		<ant antfile="build-base.xml" target="build-flash">
    		</ant>
    	</target>
    </project>
    build-base.xml
    Code:
    <project>
        <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask">
            <classpath>
            	<pathelement location="${basedir}/kavalok-build/svnant.jar" />
                <pathelement location="${basedir}/kavalok-build/svnClientAdapter.jar" />
                <pathelement location="${basedir}/kavalok-build/svnjavahl.jar" />
                <pathelement location="${basedir}/kavalok-build/svnkit.jar" />
            </classpath>
        </taskdef>
    	<target name="revision.number">
    	   <svn>
    	      <status path="" revisionProperty="svn.revision"/>
    	   </svn>
    	</target>
    
    	<target name="update-from-svn">
    		<exec executable="svn">
    			<arg value="cleanup"/>
    		</exec>
    		<exec executable="svn">
    			<arg value="up"/>
    		</exec>
    		<exec executable="svn">
    			<arg value="cleanup"/>
    			<arg value="goverla"/>
    		</exec>
    		<exec executable="svn">
    			<arg value="up"/>
    			<arg value="goverla"/>
    		</exec>
    	</target>
    	<target name="create-database" depends="update-from-svn">
    		<ant
    			antfile="build-all.xml" dir="kavalok-build" target="create-database"/>
    	</target>
    	<target name="build-all-release">
    	   <property name="deploy.dir" value="${red5.dir}/webapps/"/>
    	   <property   name="default.swf.debug" value="false"/>
    	   <antcall target="build-all"/>
    	</target>
    	<target name="build-all" depends="update-from-svn">
    	   <property name="deploy.dir" value="${red5.dir}/webapps/"/>
    		<ant
    			antfile="build-all.xml" dir="kavalok-build"/>
    	</target>
    	<target name="build-flash" depends="update-from-svn">
    	   <property   name="default.swf.debug" value="true"/>
    	   <property name="deploy.dir" value="${red5.dir}/webapps/"/>
    		<ant
    			antfile="build-all.xml" dir="kavalok-build"
    			target="deploy-flash"/>
    	</target>
    </project>
    build-all.xml
    Code:
    <project name="build-all" default="deploy">	
    	<taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask">
            <classpath>
                    <pathelement location="${basedir}/AntelopeTasks_3.4.2.jar" />
            </classpath>
    	</taskdef>
    	<taskdef name="if" classname="ise.antelope.tasks.IfTask">
            <classpath>
                    <pathelement location="${basedir}/AntelopeTasks_3.4.2.jar" />
            </classpath>
    	</taskdef>
        <taskdef name="var" classname="ise.antelope.tasks.Variable">
            <classpath>
                    <pathelement location="${basedir}/AntelopeTasks_3.4.2.jar" />
            </classpath>
        </taskdef>
        <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask">
            <classpath>
            	<pathelement location="${basedir}/svnant.jar" />
                <pathelement location="${basedir}/svnClientAdapter.jar" />
                <pathelement location="${basedir}/svnjavahl.jar" />
                <pathelement location="${basedir}/svnkit.jar" />
            </classpath>
        </taskdef>
    
        
    
    	
        <available file=".git" type="dir" property="git.present"/>
    
    	<target name="git.revision" description="Store git revision in ${repository.version}" if="git.present">
    	    <exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
    	        <arg value="describe"/>
    	        <arg value="--tags"/>
    	        <arg value="--always"/>
    	        <arg value="HEAD"/>
    	    </exec>
    	    <condition property="repository.version" value="${git.revision}" else="unknown">
    	        <and>
    	            <isset property="git.revision"/>
    	            <length string="${git.revision}" trim="yes" length="0" when="greater"/>
    	        </and>
    	    </condition>
    	</target>
    
    
    	<target name="get-svn-revision" depends="git.revision">
    	 <!--  	<exec outputproperty="build.current.revision" executable="svnversion">
    		         <arg line="-n -c" />
    		         <redirector>
    		           <outputfilterchain>
    		             <tokenfilter>
    		                 <replaceregex pattern="^[0-9]*:?" replace="" flags="g"/>
    		             </tokenfilter>
    		          </outputfilterchain>
    		        </redirector>
    		</exec>
    		<exec outputproperty="build.current.version" executable="svn">
    		  <arg line="info" />
    		  <redirector>
    		  <outputfilterchain>
    		  <linecontainsregexp><regexp pattern="^URL:" /></linecontainsregexp>
    		   <tokenfilter>
    		     <replaceregex pattern=".*\/([^\/]+)$" replace="\1" flags="g"/>
    		   </tokenfilter>
    		  </outputfilterchain>
    		</redirector>
    		</exec> 
    	-->
    
    		<property name="full.build.version" value="${git.revision}" />
    		<property name="build.current.version" value="${full.build.verison}" />
    		<property name="svn.revision" value="${full.build.version}" />
    		<property name="build.current.revision" value="${svn.revision}" />
    		<property name="svn.version.num" value="${svn.revision}" />
    		
    		<echo>Building Version: ${svn.revision} to directory /var/www/game/${build.current.revision}</echo>
    	</target>
    
    
    	<property name="exe.extension" value=".exe"/>
    	<property name="default.swf.debug" value="true"/>
    	<property file="build.properties"/>
    	<property name="static.lib.dir" value="static-lib"/>
    	<property name="flash.static.lib" value="${flash.output.dir}/${static.lib.dir}"/>
    	
    	<property name="deploy.flash.dir" value="/var/www/kavalok/game/${build.current.revision}"/>
    	
    	<target name="init-groovy">
    		<antcall target="copy-deploy-java"/>
    	    	<classpath>
    	    		<pathelement location="../kavalok-red5/lib/groovy-all-2.1.4.jar" />
    	    	</classpath>
        	</target>
    	
    		<antcall target="delete-deploy-dir"/>
    		<antcall target="deploy-java"/>
    		<antcall target="deploy-flash"/>
    		
    	</project>
    	
    	<target name="copy-deploy-java-satellite">
    	
    	<antcall target="copy-deploy-java"/>
    	<delete file="${deploy.dir}/${deploy.subdir}/WEB-INF/lib/mail.jar"/>
    
    	</target>
        
    	<target name="deploy-flash" depends="build-flash, copy-deploy-flash"/>
    	<target name="deploy-flash-win" depends="build-flash-win, copy-deploy-flash-win"/>
        <target name="deploy-flash-ethan" depends="build-flash-ethan, copy-deploy-flash-ethan"/>
    	
    	<target name="copy-deploy-flash" depends="get-svn-revision">
    		<copy todir="${deploy.flash.dir}/${svn.version.num}" overwrite="true">
    			<fileset dir="${flash.output.dir}"/>
    		</copy>
    		<exec executable="/svn/chobots/scripts/deploy-chobots-local.sh">
    			<arg value="${svn.version.num}"/>
    		</exec>
    		<!--<exec executable="service">
    			<arg line="red5"/>
    			<arg line="restart"/>
    		</exec>-->
    	</target>
    	
    	<target name="copy-deploy-flash-win" depends="get-svn-revision">
    		<copy todir="${deploy.flash.dir}/${svn.version.num}" overwrite="true">
    			<fileset dir="${flash.output.dir}"/>
    		</copy>
    	</target>
        
        <target name="copy-deploy-flash-ethan" depends="get-svn-revision">
    		<copy todir="${deploy.flash.dir}/${svn.version.num}" overwrite="true">
    			<fileset dir="${flash.output.dir}"/>
    		</copy>
    		<exec executable="/Users/EthanDev/Desktop/chobots/scripts/deploy-chobots-local.sh">
    			<arg value="${svn.version.num}"/>
    		</exec>
    		<!--<exec executable="service">
    			<arg line="red5"/>
    			<arg line="restart"/>
    		</exec>-->
    	</target>
    
    	
    	<target name="clear">
    		<delete dir="${output.dir}"/>
        	<mkdir dir="${output.dir}"/>
        	<mkdir dir="${java.output.dir}"/>
        	<mkdir dir="${flash.output.dir}"/>
        	<mkdir dir="${flash.static.lib}"/>
        </target>
    	<target name="build-all" depends="
    		init-groovy, clear
    		, get-svn-revision
    		, build-flash
    		, build-java"/>	
    		
    	<target name="build-all-win" depends="
    		init-groovy, clear
    		, get-svn-revision
    		, build-flash-win
    		, build-java"/>
    		
    	<target name="build-java-win" depends="
    		init-groovy, get-svn-revision
    		, build-java-wind"/>
    		
    	
    	<target name="copy-default">
    		<var name="project.output.dir"  value="${flash.output.dir}/resources/${project.name}"/>
    		<var name="project.dir" value="../${project.name}"/>
    		<ant antfile="build-swf.xml" target="copy-resources">
    		</ant>
    	</target>	
    	
    	<target name="build-flash" depends="clear">
    		<ant antfile="build-flash-fcsh.xml"/>
    	</target>
        
        <target name="build-flash-ethan" depends="clear">
    		<ant antfile="build-flash-fcsh.xml"/>
    	</target>
    	
    	<target name="build-flash-win" depends="clear">
    		<ant antfile="build-flash-fcsh-win.xml"/>
    	</target>
    	
    	
    	<target name="delete-java-dev">
    		<delete dir="${deploy.dir}/kavalok1"/>
    		<delete dir="${deploy.dir}/kavalok2"/>
    	</target>
    	<target name="deploy-java-dev" depends="delete-java-dev, build-java">
    		<var name="deploy.subdir" value="kavalok"/>
    		<antcall target="copy-deploy-java"/>
    	</target>
    	<target name="deploy-java-2" depends="build-java">
    		<var name="deploy.subdir" value="kavalok"/>
    		<antcall target="copy-deploy-java"/>
    		<var name="deploy.subdir" value="kavalok1"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok2"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok3"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok4"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok5"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok6"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok7"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok8"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok9"/>
    		<antcall target="copy-deploy-java-satellite"/>
    	</target>
    	<target name="deploy-java" depends="build-red5, build-java">
    		<var name="deploy.subdir" value="kavalok"/>
    		<antcall target="copy-deploy-java"/>
    		<var name="deploy.subdir" value="kavalok1"/>
    		
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok2"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok3"/>
    		<!-- 
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok4"/>
    		
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok5"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok6"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok7"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok8"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		<var name="deploy.subdir" value="kavalok9"/>
    		<antcall target="copy-deploy-java-satellite"/>
    		-->
    	</target>
    	<target name="copy-deploy-java-satellite">
    		<antcall target="copy-deploy-java"/>
    		<delete file="${deploy.dir}/${deploy.subdir}/WEB-INF/lib/mail.jar"/>
    	</target>
    	<target name="configure-properties-dev">
    		<var name="deploy.subdir" value="kavalok"/>
    		<antcall target="configure-properties"/>
    	</target>
    
    	<target name="configure-properties">
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/kavalok.properties" token="{host.ip}" value="${host.ip}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/application.properties" token="{host.address}" value="${host.address}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/hibernate.cfg.xml" token="{database.host}" value="${database.host}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/hibernate.cfg.xml" token="{database.name}" value="${database.name}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/hibernate.cfg.xml" token="{database.user}" value="${database.user}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/hibernate.cfg.xml" token="{database.password}" value="${database.password}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/red5-web.properties" token="{context.path}" value="/${deploy.subdir}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/red5-web.properties" token="{host.ip}" value="${host.ip}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/red5-web.properties" token="{instance.addresses}" value="${instance.addresses}"/>
    		<replace file="${deploy.dir}/${deploy.subdir}/WEB-INF/web.xml" token="{context.path}" value="/${deploy.subdir}"/>
    	</target>
    	<target name="copy-deploy-java">
    		<delete dir="${deploy.dir}/${deploy.subdir}"
    			quiet="true"/>
    		<copy todir="${deploy.dir}/${deploy.subdir}/jsp"
    			overwrite="true">
    			<fileset dir="../kavalok-red5/jsp"/>
    		</copy>
    		<copy todir="${deploy.dir}/${deploy.subdir}/WEB-INF"
    			overwrite="true">
    			<fileset dir="../kavalok-red5/WEB-INF"/>
    		</copy>
    		
    		<copy todir="${deploy.dir}/${deploy.subdir}/WEB-INF/lib">
    			<fileset dir="../kavalok-red5/lib" excludes="red5.jar*, spring*.jar"/>
    		</copy>
    		<copy todir="${deploy.dir}/${deploy.subdir}/WEB-INF/classes"
    			failonerror="false">
    			<fileset dir="${java.output.dir}"/>
    		</copy>
    		
    		<antcall target="configure-properties"/>
    		<replace
    			encoding="utf-8"
    			file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/mails/parentActivationMail.enUS.xml"
    			token="{host.address}"
    			value="${host.address}"/>
    		<replace
    			encoding="utf-8"
    			file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/mails/parentActivationMail.uaUA.xml"
    			token="{host.address}"
    			value="${host.address}"/>
    		<replace
    			encoding="utf-8"
    			file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/mails/parentActivationMail.ruRU.xml"
    			token="{host.address}"
    			value="${host.address}"/>
    		<replace
    			encoding="utf-8"
    			file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/mails/parentActivationMail.deDE.xml"
    			token="{host.address}"
    			value="${host.address}"/>
    		
    		<replace
    			encoding="utf-8"
    			file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/mails/childActivationMail.enUS.xml"
    			token="{host.address}"
    			value="${host.address}"/>
    		<replace
    			encoding="utf-8"
    			file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/mails/childActivationMail.uaUA.xml"
    			token="{host.address}"
    			value="${host.address}"/>
    		<replace
    			encoding="utf-8"
    			file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/mails/childActivationMail.ruRU.xml"
    			token="{host.address}"
    			value="${host.address}"/>
    		<replace
    			encoding="utf-8"
    			file="${deploy.dir}/${deploy.subdir}/WEB-INF/classes/mails/childActivationMail.deDE.xml"
    			token="{host.address}"
    			value="${host.address}"/>
    	</target>
    	
    	<target name="build-red5">
    		<delete dir="${output.dir}/red5"/>
    		<mkdir dir="${output.dir}/red5"/>
    		<javac
    			srcdir="../red5/src"
    			destdir="${output.dir}/red5"
    			encoding="utf8"
    			debug="true">
    		  	<classpath>
    		  	    <fileset dir="../red5/lib" includes="**/*.jar"/>
    		  	    <fileset dir="${jre.dir}"/>
    		    </classpath>
    		</javac>
    		<copy todir="lib">
    			<fileset dir="../red5/lib"></fileset>
    		</copy>
    		<manifestclasspath property="red5.jar.classpath" jarfile="red5.jar">
    			<classpath>
    				<fileset dir="lib" includes="**"/>
    			</classpath>
    		</manifestclasspath>
    		<delete dir="lib"/>
    		<jar destfile="${output.dir}/red5/red5.jar">
    			<fileset dir="${output.dir}/red5">
    				<include name="**"/>
    			</fileset>
    			<fileset dir="../red5" includes="conf/**">
    			</fileset>
    			<manifest>
    				<attribute name="Built-By" value="Daniel (ant, javac)"/>
    				<attribute name="Main-Class" value="org.red5.server.Standalone"/>
    				<attribute name="Class-Path" value="conf/ ${red5.jar.classpath}"/>
    			</manifest>
    			<metainf dir="../red5/src/META-INF">
    				<include name="**"/>
    			</metainf>
    		</jar>
    		<copy file="${output.dir}/red5/red5.jar" tofile="${red5.dir}/red5.jar"/>
    		<copy file="${output.dir}/red5/red5.jar" tofile="../kavalok-red5/lib/red5.jar"/>
    	</target>
    
    	<target name="build-java">
    		<delete dir="${java.output.dir}" failonerror="false"/>
    		<mkdir dir="${java.output.dir}"/>
    
    		<groovyc srcdir="../kavalok-red5/src" destdir="${java.output.dir}">
    	  			<classpath>
    	    			<fileset dir="../kavalok-red5/lib" includes="**/*.jar, **/*.xml, log4j.properties"
    	    				excludes="**/*.txt" />
    		  	    	<!-- <fileset dir="${jre.dir}"/>-->
    
    	  			</classpath>
    
    	  			<javac encoding="utf8" debug="false">
    				</javac>
    
    		</groovyc>
    
    		<copy todir="${java.output.dir}">
    			<fileset dir="../kavalok-red5/src/" includes="**/*.jar, **/*.xml, **/*.properties"/>
    		</copy>
    	</target>
    	
    	<!--<target name="build-java">
    		<delete dir="${java.output.dir}" failonerror="false"/>
    		<mkdir dir="${java.output.dir}"/>
    		<javac
    			srcdir="../kavalok-red5/src"
    			destdir="${java.output.dir}"
    			encoding="utf8"
    			debug="true"
    			>
    		  	<classpath>
    		  	    <fileset dir="../kavalok-red5/lib" includes="**/*.jar, **/*.xml, log4j.properties"/>
    		  	    <fileset dir="${jre.dir}"/>
    		    </classpath>
    		</javac>
    		<copy todir="${java.output.dir}">
    			<fileset dir="../kavalok-red5/src/" includes="**/*.jar, **/*.xml, **/*.properties"/>
    		</copy>
    	</target>-->
    	
    	<target name="build-java-wind" depends="build-java">
    		
    	</target>
    	
    </project>

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    Look at line 100 of build-all.xml and tell me why you have a </project> tag there.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •