ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32676] New: - Ant doesn't indicate java.io.tmpdir full for replaceregexp task
Date Tue, 14 Dec 2004 00:10:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32676>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32676

           Summary: Ant doesn't indicate java.io.tmpdir full for
                    replaceregexp task
           Product: Ant
           Version: 1.6.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jesse_demmel@yahoo.com


I have a simple XML that only has one task, replaceregexp, on a single file.  It
kept writing the file back with nothing in it, 0 bytes.  After some
investigation and lucky intuition, I discovered that my java.io.tmpdir
(/var/tmp) was full.  After making some room there, the task worked correctly. 
This was the only thing I changed to get it to work.  Neither debug or verbose
gave me any clue that this was a problem.  At best, I would expect an Ant error
that it can't successfully write the file to /var/tmp.  An ok solution would be
an indication in either -debug or -verbose.

Running the following ant command:

ant -f test.xml -d -v -diagnostics

Contents of test.xml:

<project name="automated" default="test">
        <replaceregexp match="log.dir=" replace="log.dir=foo" byline="true">
            <fileset dir="/myhomedir" includes="ConfigResources.properties"/>
        </replaceregexp>
   </target>
</project>

Display of -debug and -verbose (the original test.xml had more properties in it):

16:12 condor /export/home/nightjunitlst211>ant -f test.xml -v -d
Apache Ant version 1.6.0 compiled on December 18 2003
Apache Ant version 1.6.0 compiled on December 18 2003
Buildfile: test.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: /apps/java/j2sdk1.4.2/jre
Detected OS: SunOS
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.0 compiled on
December 18 2003
Setting ro project property: ant.file -> /export/home/nightjunitlst211/test.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile /export/home/nightjunitlst211/test.xml with URI =
file:///export/home/nightjunitlst211/test.xml
Setting ro project property: ant.project.name -> automated
Adding reference: automated
Setting ro project property: ant.file.automated ->
/export/home/nightjunitlst211/test.xml
Project base dir set to: /export/home/nightjunitlst211
 +Target:
 +Target: test
Setting project property: automated.home -> /export/home/nightjunitlst211
Setting project property: catalina.home ->
/export/home/nightjunitlst211/jakarta-tomcat-4.1.24
Setting project property: lst.home -> /export/home/nightjunitlst211/lst
Setting project property: db.user -> nightlyjunit21
Setting project property: db.password -> nightlyjunit21
Setting project property: db.host -> condor
Setting project property: db.port -> 1521
Setting project property: db.instance -> LSTBLDR
Setting project property: lm.ipaddress -> 10.30.8.174
Setting project property: lm.port -> 5110
Build sequence for target `test' is [test]
Complete build sequence is [test, ]

test:
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream)
for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (org/apache/commons/net/SocketClient) for type
rexec
Could not load a dependent class (com/starbase/starteam/Item) for type stlist
Could not load a dependent class (org/apache/commons/net/SocketClient) for type
telnet
Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type ftp
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (com/starbase/starteam/Item) for type stcheckin
Could not load a dependent class (com/starbase/starteam/Item) for type stcheckout
fileset: Setup scanner in dir /export/home/nightjunitlst211/lst with patternSet{
includes: [ConfigResources.properties] excludes: [] }
[replaceregexp] Replacing pattern 'log.dir=' with 'foo' in
'/export/home/nightjunitlst211/lst/ConfigResources.properties' by line.

Finally, if you care, the results of `ant -diagnostics`:

------- Ant diagnostics report -------
Apache Ant version 1.6.0 compiled on December 18 2003

-------------------------------------------
 Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks     : 1.6.0
optional tasks : 1.6.0

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /apps/java/apache-ant-1.6.0
ant-antlr.jar (5652 bytes)
ant-apache-bsf.jar (12331 bytes)
ant-apache-resolver.jar (4102 bytes)
ant-commons-logging.jar (3855 bytes)
ant-commons-net.jar (34911 bytes)
ant-icontract.jar (9675 bytes)
ant-jai.jar (21535 bytes)
ant-jakarta-bcel.jar (8646 bytes)
ant-jakarta-log4j.jar (3024 bytes)
ant-jakarta-oro.jar (47895 bytes)
ant-jakarta-regexp.jar (3720 bytes)
ant-javamail.jar (6759 bytes)
ant-jdepend.jar (7968 bytes)
ant-jmf.jar (6617 bytes)
ant-jsch.jar (21460 bytes)
ant-junit.jar (68986 bytes)
ant-launcher.jar (8199 bytes)
ant-netrexx.jar (9906 bytes)
ant-nodeps.jar (394801 bytes)
ant-starteam.jar (35537 bytes)
ant-stylebook.jar (2326 bytes)
ant-swing.jar (6627 bytes)
ant-trax.jar (67074 bytes)
ant-vaj.jar (48386 bytes)
ant-weblogic.jar (14447 bytes)
ant-xalan1.jar (3937 bytes)
ant-xalan2.jar (2489 bytes)
ant-xslp.jar (2236 bytes)
ant.jar (952104 bytes)
xercesImpl.jar (949628 bytes)
xml-apis.jar (124724 bytes)
bsf.jar (175348 bytes)
js.jar (390767 bytes)
junit37.jar (117522 bytes)

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
rexec : Missing dependency org.apache.commons.net.SocketClient
stlist : Missing dependency com.starbase.starteam.Item
telnet : Missing dependency org.apache.commons.net.SocketClient
ftp : Missing dependency org.apache.commons.net.ftp.FTP
jdepend : Missing dependency jdepend.xmlui.JDepend
stcheckin : Missing dependency com.starbase.starteam.Item
stcheckout : Missing dependency com.starbase.starteam.Item
-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: /apps/java/apache-ant-1.6.0/lib/xercesImpl.jar
-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path : /apps/java/j2sdk1.4.2/jre/lib/sparc
java.vm.version : 1.4.2-b28
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : :
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
sun.os.patch.level : unknown
java.vm.specification.name : Java Virtual Machine Specification
user.dir : /export/home/nightjunitlst211
java.runtime.version : 1.4.2-b28
java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
java.endorsed.dirs : /apps/java/j2sdk1.4.2/jre/lib/endorsed
os.arch : sparc
java.io.tmpdir : /var/tmp/
line.separator :
java.vm.specification.vendor : Sun Microsystems Inc.
os.name : SunOS
ant.home : /apps/java/apache-ant-1.6.0
sun.java2d.fontpath :
java.library.path :
/apps/java/j2sdk1.4.2/jre/lib/sparc/client:/apps/java/j2sdk1.4.2/
jre/lib/sparc:/apps/java/j2sdk1.4.2/jre/../lib/sparc:/usr/lib/lwp::/opt/sfw/lib:/usr/
X11R6/lib:/usr/lib:/usr/openwin/lib:/opt/gnome/lib:/usr/lib
java.specification.name : Java Platform API Specification
java.class.version : 48.0
java.util.prefs.PreferencesFactory : java.util.prefs.FileSystemPreferencesFactory
os.version : 5.8
user.home : /users/gwager
user.timezone : US/Mountain
java.awt.printerjob : sun.print.PSPrinterJob
file.encoding : ISO646-US
java.specification.version : 1.4
java.class.path :
/apps/java/apache-ant-1.6.0/lib/ant-launcher.jar:/export/home/rick/
dev/glue5/lib/glue-all.jar:/export/home/rick/dev/glue5/lib/glue-examples.jar:/apps/ja
va/apache-ant-1.6.0/lib/ant-antlr.jar:/apps/java/apache-ant-1.6.0/lib/ant-apache-bsf.
jar:/apps/java/apache-ant-1.6.0/lib/ant-apache-resolver.jar:/apps/java/apache-ant-1.6
.0/lib/ant-commons-logging.jar:/apps/java/apache-ant-1.6.0/lib/ant-commons-net.jar:/a
pps/java/apache-ant-1.6.0/lib/ant-icontract.jar:/apps/java/apache-ant-1.6.0/lib/ant-j
ai.jar:/apps/java/apache-ant-1.6.0/lib/ant-jakarta-bcel.jar:/apps/java/apache-ant-1.6
.0/lib/ant-jakarta-log4j.jar:/apps/java/apache-ant-1.6.0/lib/ant-jakarta-oro.jar:/app
s/java/apache-ant-1.6.0/lib/ant-jakarta-regexp.jar:/apps/java/apache-ant-1.6.0/lib/an
t-javamail.jar:/apps/java/apache-ant-1.6.0/lib/ant-jdepend.jar:/apps/java/apache-ant-
1.6.0/lib/ant-jmf.jar:/apps/java/apache-ant-1.6.0/lib/ant-jsch.jar:/apps/java/apache-
ant-1.6.0/lib/ant-junit.jar:/apps/java/apache-ant-1.6.0/lib/ant-launcher.jar:/apps/ja
va/apache-ant-1.6.0/lib/ant-netrexx.jar:/apps/java/apache-ant-1.6.0/lib/ant-nodeps.ja
r:/apps/java/apache-ant-1.6.0/lib/ant-starteam.jar:/apps/java/apache-ant-1.6.0/lib/an
t-stylebook.jar:/apps/java/apache-ant-1.6.0/lib/ant-swing.jar:/apps/java/apache-ant-1
.6.0/lib/ant-trax.jar:/apps/java/apache-ant-1.6.0/lib/ant-vaj.jar:/apps/java/apache-a
nt-1.6.0/lib/ant-weblogic.jar:/apps/java/apache-ant-1.6.0/lib/ant-xalan1.jar:/apps/ja
va/apache-ant-1.6.0/lib/ant-xalan2.jar:/apps/java/apache-ant-1.6.0/lib/ant-xslp.jar:/
apps/java/apache-ant-1.6.0/lib/ant.jar:/apps/java/apache-ant-1.6.0/lib/xercesImpl.jar
:/apps/java/apache-ant-1.6.0/lib/xml-apis.jar:/apps/java/apache-ant-1.6.0/lib/bsf.jar
:/apps/java/apache-ant-1.6.0/lib/js.jar:/apps/java/apache-ant-1.6.0/lib/junit37.jar:/
apps/java/j2sdk1.4.2/lib/tools.jar
user.name : gwager
java.vm.specification.version : 1.0
java.home : /apps/java/j2sdk1.4.2/jre
sun.arch.data.model : 32
user.language : en
java.specification.vendor : Sun Microsystems Inc.
java.vm.info : mixed mode
java.version : 1.4.2
java.ext.dirs : /apps/java/j2sdk1.4.2/jre/lib/ext
sun.boot.class.path :
/apps/java/j2sdk1.4.2/jre/lib/rt.jar:/apps/java/j2sdk1.4.2/jre/
lib/i18n.jar:/apps/java/j2sdk1.4.2/jre/lib/sunrsasign.jar:/apps/java/j2sdk1.4.2/jre/l
ib/jsse.jar:/apps/java/j2sdk1.4.2/jre/lib/jce.jar:/apps/java/j2sdk1.4.2/jre/lib/chars
ets.jar:/apps/java/j2sdk1.4.2/jre/classes
java.vendor : Sun Microsystems Inc.
file.separator : /
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding : UnicodeBig
sun.cpu.endian : big
sun.cpu.isalist : sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8
sparcv8-fsm uld sparcv7 sparc

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message