diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-04-21 11:39:59 +0200 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-04-21 11:39:59 +0200 |
commit | 2ae59042967fd82531924c66c0184d391c7c7415 (patch) | |
tree | 1dceb2167d5054d20e715a0c768b5c2dd4f23fdd /transex3 | |
parent | ce0b093f1908ccce9446c29ee479142c61943090 (diff) |
#i100845# let -o switch write several files into one directory
Diffstat (limited to 'transex3')
-rw-r--r-- | transex3/java/jpropex/java/JPropEx.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/transex3/java/jpropex/java/JPropEx.java b/transex3/java/jpropex/java/JPropEx.java index 2ba1e913f5d4..20175febe5d5 100644 --- a/transex3/java/jpropex/java/JPropEx.java +++ b/transex3/java/jpropex/java/JPropEx.java @@ -223,7 +223,13 @@ public class JPropEx .append( "_" ).append( lang.replaceAll("-","_") ).append( ".properties" ).toString(); } else if( outputFileArg != null && outputFileArg.length()>0 ) + { name = outputFileArg; + name += new StringBuffer().append( inputFileArg.substring( filenameIdx , filename.lastIndexOf( ".properties" ) ) ) + .append( "_" ).append( lang.replaceAll("-","_") ).append( ".properties" ).toString(); + + //name = outputFileArg; + } else { System.err.println("ERROR: No outputfile specified .. either -o or -x -y !"); @@ -249,6 +255,7 @@ public class JPropEx } path += name; // Write the properties file + System.out.println("DBG: Writing to "+path); try{ BufferedOutputStream out = new BufferedOutputStream( new FileOutputStream( path ) ); if( prop == null ) |