You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by jo...@apache.org on 2004/09/07 11:13:58 UTC
cvs commit: ws-jaxme/src/js/org/apache/ws/jaxme/js JavaSourceFactory.java
jochen 2004/09/07 02:13:58
Modified: src/js/org/apache/ws/jaxme/js JavaSourceFactory.java
Log:
The isReadOnly() flag is now honored when creating Java source files.
PR: JAXME-32
Submitted by: Nacho G. Mac Dowell, nacho at visual-ma.com
Revision Changes Path
1.5 +5 -2 ws-jaxme/src/js/org/apache/ws/jaxme/js/JavaSourceFactory.java
Index: JavaSourceFactory.java
===================================================================
RCS file: /home/cvs/ws-jaxme/src/js/org/apache/ws/jaxme/js/JavaSourceFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- JavaSourceFactory.java 4 Mar 2004 22:29:22 -0000 1.4
+++ JavaSourceFactory.java 7 Sep 2004 09:13:57 -0000 1.5
@@ -305,13 +305,16 @@
if (p != null && !p.exists()) {
getLogger().fine(mName, "Creating directory " + p);
p.mkdirs();
- }
+ }
if (isOverwriteForced() || !pFile.exists() || !isSameFile(pJs, pFile)) {
getLogger().fine(mName, "Creating " + pFile);
Writer w = new BufferedWriter(new FileWriter(pFile), 4096);
pJs.write(w);
w.close();
+ if (isSettingReadOnly()) {
+ pFile.setReadOnly();
+ }
} else {
getLogger().fine(mName, "Uptodate: " + pFile);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org