Problem Building Trunk

Greg Wittel <[email protected]> Tue, 04 Mar 2008 13:40:35 -0800
Newsgroups gmane.comp.java.xplanner.devel
Message-ID <[email protected]>
I'm having trouble building some of the targets such as clean.db.schema and 
build.bin.dist.  It looks like its related to the setup of the HSQLDB 
tables.  I can build things like build.war just fine.

The clean.db.schema error seems to be related to how build-db.xml is set 
up.  I first tried adding 'expandproperties="true"' to the <sql.tool> 
definition, but this did not help.

The error in build.bin.dist fails on the dependent target 'apply.patch'. 
It looks like one or more of the patch files is not relevant.

Ant output is below.  Any ideas?  Using JDK 1.5.0._16, Ant 1.7.

-Greg

SVN Branch: trunk

Target: clean.db.schema
	$ ant clean.db.schema
	Buildfile: build.xml
	
	_check.svn.project:
	
	_init.skip.svn.update:
	
	_init.svn:
	
	_init:
	
	svn.get.revision:
	      [svn] Using javahl
	Svn : Status
	     [echo] project subversion rev is 1264
	
	_build.prepare.etc:
	     [copy] Copying 70 files to 
/tmp/xplanner/svn/xplanner/xplanner/build/classes/product
	     [copy] Copying 1 file to /tmp/xplanner/svn/xplanner/xplanner/war/WEB-INF
	     [copy] Copying 1 file to 
/tmp/xplanner/svn/xplanner/xplanner/war/WEB-INF/classes
	
	compile.reports:
	
	build.product:
	     [copy] Copying 514 files to 
/tmp/xplanner/svn/xplanner/xplanner/build/classes/product
	
	clean.db.schema:
	 [sql.tool] Executing commands
	 [sql.tool] Failed to execute:  drop database if exists 
${hibernate.connection.database}
	
	BUILD FAILED
	/tmp/xplanner/svn/xplanner/xplanner/build-db.xml:66: 
java.sql.SQLException: Unknown JDBC escape sequence: {



Target: apply.patch
	[java] [    869]   INFO - til.migration.MigrationProcess - Running 
migration task "patch0007_iteration44-45.sql 
[com.tacitknowledge.util.migration.jdbc.SqlScriptMigrationTask]"...
	[java] [    872]  ERROR - on.jdbc.SqlScriptMigrationTask - 
patch0007_iteration44-45.sql: Error running SQL "ALTER TABLE note DROP 
CONSTRAINT FK33AFF2A62F61B7"
	[java] java.sql.SQLException: Constraint not found FK33AFF2A62F61B7 in 
table: NOTE in statement
	[ALTER TABLE note DROP CONSTRAINT FK33AFF2A62F61B7]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/