Changeset 1592 for trunk/docx4j/src/main


Ignore:
Timestamp:
07/08/11 01:29:48 (11 months ago)
Author:
jharrop
Message:

OpenAndSaveRoundTripTest? extends AbstractSample?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/samples/OpenAndSaveRoundTripTest.java

    r615 r1592  
    3636 
    3737 
    38 public class OpenAndSaveRoundTripTest { 
     38public class OpenAndSaveRoundTripTest extends AbstractSample { 
    3939         
    4040        public static JAXBContext context = org.docx4j.jaxb.Context.jc;  
     
    4545        public static void main(String[] args) throws Exception { 
    4646 
    47                 //String inputfilepath = "/home/dev/workspace/docx4j/sample-docs/jpeg.docx"; 
    48                 String inputfilepath = "/home/dev/simple-out.docx"; 
    49                 //String inputfilepath = System.getProperty("user.dir") + "/sample-docs/AutoOpen.docm"; 
    50                  
     47                try { 
     48                        getInputFilePath(args); 
     49                } catch (IllegalArgumentException e) { 
     50                inputfilepath = System.getProperty("user.dir") + "/sample-docs/word/2010/2010-sample1.docx"; 
     51                } 
     52                System.out.println(inputfilepath);               
     53                                 
    5154                boolean save = true; 
    52                 String outputfilepath = "/home/dev/simple-out-rtt2.docx";                
     55                String outputfilepath = System.getProperty("user.dir") + "/OUT-roundtrip.docx";          
    5356                 
    5457                 
Note: See TracChangeset for help on using the changeset viewer.