jstrachan    2002/11/04 23:45:57

  Modified:    jelly/src/test/org/apache/commons/jelly/html
                        radioToPDA.jelly
               jelly    maven.xml
  Log:
  Minor patch to the Radio to PDA tool (that creates a HTML view of Radio's news 
aggregator that can be read on a small PDA screen) so that the directory where the 
generated file goes can be customized in a build.properties file
  
  Revision  Changes    Path
  1.2       +8 -1      
jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/html/radioToPDA.jelly
  
  Index: radioToPDA.jelly
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/html/radioToPDA.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- radioToPDA.jelly  22 Oct 2002 08:10:12 -0000      1.1
  +++ radioToPDA.jelly  5 Nov 2002 07:45:57 -0000       1.2
  @@ -3,6 +3,7 @@
        xmlns:j="jelly:core" 
        xmlns:x="jelly:xml" 
        xmlns:html="jelly:html" 
  +     xmlns:log="jelly:log" 
        xmlns:jsl="jelly:jsl">
   
        <!-- 
  @@ -12,7 +13,13 @@
   
     <html:parse var="doc" html="http://127.0.0.1:5335/system/pages/news"/>
   
  -     <j:file name="target/radio.html" outputMode="html">
  +     <j:if test="${empty(outputFile)}">
  +             <j:set var="outputFile" value="target/radio.html"/>                    
 
  +     </j:if>
  +     
  +     <log:info>About to generate file ${outputFile}</log:info>
  +     
  +     <j:file name="${outputFile}" outputMode="html">
                <jsl:stylesheet select="$doc">
                        <jsl:template match="/">
                                <jsl:applyTemplates/>
  
  
  
  1.46      +1 -0      jakarta-commons-sandbox/jelly/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/maven.xml,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- maven.xml 30 Oct 2002 19:16:34 -0000      1.45
  +++ maven.xml 5 Nov 2002 07:45:57 -0000       1.46
  @@ -559,6 +559,7 @@
       <java classname="org.apache.commons.jelly.Jelly" fork="yes">
         <classpath refid="test.classpath"/>
         <arg value="src/test/org/apache/commons/jelly/html/radioToPDA.jelly"/> 
  +      <sysproperty key="outputFile" value="${pdaOutputFile}"/>
       </java>
     </goal>
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>

Reply via email to