commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bur...@apache.org
Subject cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/network ResourceRequestFactory.java
Date Thu, 27 Jan 2005 07:15:50 GMT
burton      2005/01/26 23:15:50

  Modified:    feedparser build.xml project.xml
               feedparser/src/java/org/apache/commons/feedparser/locate
                        AnchorParser.java
               feedparser/src/java/org/apache/commons/feedparser/network
                        ResourceRequestFactory.java
  Log:
  Fixed really stupid regression in package
  
  Revision  Changes    Path
  1.13      +6 -6      jakarta-commons-sandbox/feedparser/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/build.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- build.xml	20 Jan 2005 08:54:06 -0000	1.12
  +++ build.xml	27 Jan 2005 07:15:50 -0000	1.13
  @@ -9,9 +9,9 @@
       <property name="project" value="feedparser"/>
   
       <property name="version.major" value="0"/>
  -    <property name="version.minor" value="0"/>
  -    <property name="version.sub" value="1"/>
  -    <property name="version.desc" value="alpha"/>
  +    <property name="version.minor" value="5"/>
  +    <property name="version.sub" value="0"/>
  +    <property name="version.desc" value="beta"/>
   
       <property name="docs.dest" value="./site"/>
       <property name="docs.src" value="./xdocs"/>
  @@ -177,11 +177,11 @@
           </javadoc>
       </target>
   
  -    <!--<target name="docs">-->
  +    <target name="docs">
   
           <!-- anakia config borrowed from Lucene -->
   
  -        <!--<taskdef name="anakia"
  +        <taskdef name="anakia"
                    classname="org.apache.velocity.anakia.AnakiaTask"
                    classpathref="anakia.classpath">
   
  @@ -197,7 +197,7 @@
                   lastModifiedCheck="true"
                   templatePath="${jakarta.site2.home}/xdocs/stylesheets"/>
   
  -    </target>-->
  +    </target>
   
       <target name="help">
           <echo message="U S A G E :"/>
  
  
  
  1.3       +9 -0      jakarta-commons-sandbox/feedparser/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/project.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- project.xml	27 Jan 2005 06:33:55 -0000	1.2
  +++ project.xml	27 Jan 2005 07:15:50 -0000	1.3
  @@ -1,18 +1,27 @@
   <?xml version="1.0"?>
   <project>
  +
       <extend>../sandbox-build/project.xml</extend>
  +
       <name>Commons FeedParser</name>
  +
       <id>commons-feedparser</id>
  +
       <logo>/images/feedparser-logo-white.png</logo>
  +
       <url>http://jakarta.apache.org/commons/sandbox/feedparser/</url>
  +
       <inceptionYear>2004</inceptionYear>
  +
       <shortDescription>Jakarta FeedParser</shortDescription>
  +
       <description>Jakarta FeedParser</description>
   
       <currentVersion>0.5-beta</currentVersion>
   
       <versions>
       </versions>
  +
       <branches>
       </branches>
   
  
  
  
  1.9       +2 -0      jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/locate/AnchorParser.java
  
  Index: AnchorParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/locate/AnchorParser.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AnchorParser.java	20 Jan 2005 09:00:37 -0000	1.8
  +++ AnchorParser.java	27 Jan 2005 07:15:50 -0000	1.9
  @@ -38,6 +38,8 @@
                                 AnchorParserListener listener )
           throws AnchorParserException {
   
  +        //FIXME: we do NOT obey base right now and this is a BIG problem!
  +        
           parseAnchors( content, listener );
           
       }
  
  
  
  1.2       +10 -2     jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/network/ResourceRequestFactory.java
  
  Index: ResourceRequestFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/network/ResourceRequestFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ResourceRequestFactory.java	25 Jan 2005 07:55:19 -0000	1.1
  +++ ResourceRequestFactory.java	27 Jan 2005 07:15:50 -0000	1.2
  @@ -65,8 +65,14 @@
        * resource.
        */
       public static int DEFAULT_CONNECT_TIMEOUT = 1 * 60 * 1000;
  +
       public static int DEFAULT_READ_TIMEOUT = DEFAULT_CONNECT_TIMEOUT;
   
  +    /**
  +     * Specify the maximum number of redirects to use.
  +     */
  +    public static int DEFAULT_MAX_REDIRECTS = 5;
  +
       //FIXME: (should this be a linked list?)
       private static ArrayList listeners = new ArrayList( 30 );
   
  @@ -209,6 +215,9 @@
   
           System.setProperty( "sun.net.client.defaultConnectTimeout",
                               Integer.toString( DEFAULT_CONNECT_TIMEOUT ) );
  +
  +        System.setProperty( "http.maxRedirects",
  +                            Integer.toString( DEFAULT_MAX_REDIRECTS ) );
           
           if ( schemeMap == null ) {
               
  @@ -217,7 +226,6 @@
               schemeMap.put( "file", URLResourceRequest.class );
               schemeMap.put( "http", URLResourceRequest.class );
               schemeMap.put( "https", URLResourceRequest.class );
  -            //schemeMap.put( "sitefilter", SiteFilterRequest.class );
               schemeMap.put( BlockingResourceRequest.SCHEME, BlockingResourceRequest.class
);
               
           }
  
  
  

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


Mime
View raw message