continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r453326 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/WorkingCopyAction.java
Date Thu, 05 Oct 2006 19:28:42 GMT
Author: evenisse
Date: Thu Oct  5 12:28:41 2006
New Revision: 453326

URL: http://svn.apache.org/viewvc?view=rev&rev=453326
Log:
Fix 1.5 code

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/WorkingCopyAction.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/WorkingCopyAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/WorkingCopyAction.java?view=diff&rev=453326&r1=453325&r2=453326
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/WorkingCopyAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/WorkingCopyAction.java
Thu Oct  5 12:28:41 2006
@@ -105,9 +105,9 @@
             downloadFile = new File( getContinuum().getWorkingDirectory( projectId ) + dir
+ currentFile );
             mimeType = mimeTypesMap.getContentType( downloadFile );
             
-            if ( ( mimeType.contains( "image" ) ) ||
-                 ( mimeType.contains( "java-archive" ) ) ||
-                 ( mimeType.contains( "java-class" ) ) ||
+            if ( ( mimeType.indexOf( "image" ) >= 0 ) ||
+                 ( mimeType.indexOf( "java-archive" ) >= 0 ) ||
+                 ( mimeType.indexOf( "java-class" ) >= 0 ) ||
                  ( downloadFile.length() > 100000 ) )
             {
                 return "stream";



Mime
View raw message