db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark B (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4341) Building with ant all with a different CLASSPATH defined causes the build to fail
Date Tue, 13 Oct 2009 06:47:31 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764974#action_12764974
] 

Mark B commented on DERBY-4341:
-------------------------------

for now I'll just add the detail

$ ant -v runmessagecheck
Apache Ant version 1.7.1 compiled on October 3 2008
Buildfile: build.xml
Detected Java version: 1.6 in: /usr/lib/jvm/java-6-sun-1.6.0.10/jre
Detected OS: Linux
parsing buildfile /home/mark/src/derbypristine/verypristine/build.xml with URI = file:/home/mark/src/derbypristine/verypristine/build.xml
Project base dir set to: /home/mark/src/derbypristine/verypristine
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml.
It could not be found.
 [property] Loading /home/mark/ant.properties
 [property] Unable to find property file: /home/mark/ant.properties
 [property] Loading /home/mark/src/derbypristine/verypristine/tools/ant/properties/dirs.properties
Property "jdk" has not been set
Property "sanity" has not been set
 [property] Loading /home/mark/src/derbypristine/verypristine/tools/ant/properties/sane${sanity}.properties
 [property] Unable to find property file: /home/mark/src/derbypristine/verypristine/tools/ant/properties/sane${sanity}.properties
 [property] Loading /home/mark/src/derbypristine/verypristine/java/engine/state.properties
Build sequence for target(s) `runmessagecheck' is [runmessagecheck]
Complete build sequence is [runmessagecheck, checklocaleinfo, localeinfo, setInitialProperties,
init, setissane, sanitynamesane, sanitynameinsane, setsanityname, junit-all-codeline-jars-set-properties,
junit-init, junit-system-mini, junit-system-mini-codeline-jars, infowriter, toolsdocs, showenv,
getstate, state, shared, parsers, engine, junit-sysinfo, getsvnversion, prebuild, setCompilerProperties,
initjars, derbywar, include-in-javadoc, buildlocaleinfo, publishedapi-workhorse, ckversioninfo,
writeversioninfo, versioninfo, emma-init, derbyjarwithosgi, localeinfowriter, junit-core,
jdbc3stubs, clean, cleanstate, cleanparsers, cleanmessages, cleancatalog, cleantoursdb, clobber,
snapshotError, snapshot, checksanenotset, state.exists, checkstateremoved, checkforpackagingfile,
cleanalljars, cleandocs, cleansnapshot, cleanreleasefiles, prepareforrelease, junit-pptesting,
checkCompilerLevel, jsr169stubs, jdbc4stubs, felixStubs, storeless, tools, drda, client, build,
buildsource, vti-demo, demo, demodocs, cscuptodate, class_size_catalog, junit-jdbc4-workhorse,
checkVMLevel, junit-jdbc4, junit-jmx, junit-lowmem, junit-all, insane, ensuresanitystate.insane,
l10ncheck, derbyjar, derbytoolsjar, derbynetjar, derbyclientjar, derbyrunjar, derbylocalejars,
ckderbytesting, derbytestingjar, buildjars, plugin, junit-clean, declare-autoloadable-driver,
make-core-derbyjar-manifest, public-jdbc4-api, chkparser, genParser, testing, pptesting, all,
publishedapi, derbydocs, grammardocs, testingdocs, javadoc, gump_all, junit-single, junit-single-codeline-jars,
emma-instrumentation, emma-report, emma-all, localejar, evaluate.sane, sane, public-jdbc3-api,
emma-single, printCompilerProperties, ensuresanitystate, ensuresanitystate.sane, cleanlocale,
junit-html, junitreport, exclude-from-javadoc, engine_169_opt, emma-clean, meta-inf-common,
cleanjars, cleanversion, junit-all-codeline-jars, make-locale-classpath-manifest, buildworld,
dojjdocs, cibuild, buildjarsclean, ]

runmessagecheck:
[runMessageBundleTest] WARNING: Message id XCL17.S in messages_en.properties is not referenced
in either SQLState.java or MessageId.java
[runMessageBundleTest] WARNING: Message id 08000.S.1 in messages_en.properties is not referenced
in either SQLState.java or MessageId.java
[runMessageBundleTest] WARNING: Message id XJ102.S in messages_en.properties is not referenced
in either SQLState.java or MessageId.java
[runMessageBundleTest] WARNING: Message id J106 in messages_en.properties is not referenced
in either SQLState.java or MessageId.java
[runMessageBundleTest] WARNING: Message id 25000 in messages_en.properties is not referenced
in either SQLState.java or MessageId.java
[runMessageBundleTest] WARNING: Message id 22004.S.4 in messages_en.properties is not referenced
in either SQLState.java or MessageId.java
[runMessageBundleTest] WARNING: Message id 42Y03 in messages_en.properties is not referenced
in either SQLState.java or MessageId.java

BUILD FAILED
/home/mark/src/derbypristine/verypristine/build.xml:514: Message check failed. 
See error in build output or call ant runmessagecheck.
	at org.apache.derbyBuild.MessageBundleTest.execute(MessageBundleTest.java:69)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.apache.tools.ant.Main.runBuild(Main.java:758)
	at org.apache.tools.ant.Main.startAnt(Main.java:217)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 0 seconds


> Building with ant all with a different CLASSPATH defined causes the build to fail
> ---------------------------------------------------------------------------------
>
>                 Key: DERBY-4341
>                 URL: https://issues.apache.org/jira/browse/DERBY-4341
>             Project: Derby
>          Issue Type: Bug
>          Components: Build tools
>    Affects Versions: 10.6.0.0
>            Reporter: Tiago R. Espinha
>
> The problem happens when we are trying to compile the source code in a folder and have
the CLASSPATH variable set to a different code tree folder. This results in compile failures
like the following:
> runmessagecheck:
> [runMessageBundleTest] WARNING: Message id 22011.S.1 in messages_en.properties is not
referenced in either SQLState.java or MessageId.java
> [runMessageBundleTest] WARNING: Message id 42Y03.S.0 in messages_en.properties is not
referenced in either SQLState.java or MessageId.java
> [runMessageBundleTest] WARNING: Message id 42Y03.S.1 in messages_en.properties is not
referenced in either SQLState.java or MessageId.java
> [runMessageBundleTest] WARNING: Message id 42Y03.S.2 in messages_en.properties is not
referenced in either SQLState.java or MessageId.java
> BUILD FAILED
> /home/tiago/Desktop/DerbyStuff/CodeTenFiveTwo/build.xml:514: Message check failed. 
> See error in build output or call ant runmessagecheck.
> Total time: 1 minute 11 seconds
> This should be an easy fix and it is marked as a bug, since it doesn't seem very logical
for the compiling process to be CLASSPATH-dependent. Note that unsetting the CLASSPATH altogether
allows the compile to run without errors, so clearly this variable isn't needed and shouldn't
be used when it is set.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message