Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for jar (0.14 sec)

  1. src/main/java/org/codelibs/core/net/URLUtil.java

                return canonicalProtocol;
            }
            return protocol;
        }
    
        /**
         * URLが示すJarファイルの{@link File}オブジェクトを返します。
         *
         * @param fileUrl
         *            JarファイルのURL。{@literal null}であってはいけません
         * @return Jarファイルの{@link File}
         */
        public static File toFile(final URL fileUrl) {
            assertArgumentNotNull("fileUrl", fileUrl);
    
            try {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/net/JarURLConnectionUtil.java

     */
    package org.codelibs.core.net;
    
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.IOException;
    import java.net.JarURLConnection;
    import java.util.jar.JarFile;
    
    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * {@link JarURLConnection}用のユーティリティクラスです。
     *
     * @author higa
     */
    public abstract class JarURLConnectionUtil {
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/io/ClassTraversalTest.java

    import static org.junit.Assert.assertTrue;
    
    import java.io.File;
    import java.net.JarURLConnection;
    import java.net.URL;
    import java.util.zip.ZipInputStream;
    
    import junit.framework.TestCase;
    
    import org.codelibs.core.jar.JarFileUtil;
    import org.codelibs.core.lang.ClassUtil;
    import org.junit.Before;
    import org.junit.Test;
    
    /**
     * @author taedium
     */
    public class ClassTraversalTest {
    
        private static int count = 0;
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/jar/JarFileUtilTest.java

            assertEquals(root + "Program Files" + File.separator + "foo.jar", JarFileUtil.toJarFilePath(url));
        }
    
        /**
         * @throws Exception
         */
        public void testRelativePath() throws Exception {
            final File f = new File("/Program Files/foo.jar");
            URL url = new URL("jar:" + f.toURI().toURL() + "!/foo/bar/");
            url = new URL(url, "..");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/ResourceUtil.java

    import java.io.InputStream;
    import java.net.URL;
    import java.util.Properties;
    
    import org.codelibs.core.exception.IORuntimeException;
    import org.codelibs.core.exception.ResourceNotFoundRuntimeException;
    import org.codelibs.core.jar.JarFileUtil;
    import org.codelibs.core.net.URLUtil;
    
    /**
     * リソース用のユーティリティクラスです。
     *
     * @author higa
     */
    public abstract class ResourceUtil {
    
        /**
         * リソースパスを返します。
         *
         * @param path
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

                traverseFileSystem(packageDir, rootPackage, handler);
            }
        }
    
        /**
         * Jarファイルに含まれるクラスをトラバースします。
         * <p>
         * 指定されたJarファイルが拡張子<code>.war</code>を持つ場合は、 Jarファイル内のエントリのうち、 接頭辞
         * <code>WEB-INF/classes</code>で始まるパスを持つエントリがトラバースの対象となります。
         * クラスを処理するハンドラには、接頭辞を除くエントリ名が渡されます。 例えばJarファイル内に
         * <code>/WEB-INF/classes/ccc/ddd/Eee.class</code>というクラスファイルが存在すると、 ハンドラには
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/TraversalUtil.java

    import org.codelibs.core.zip.ZipInputStreamUtil;
    
    /**
     * ファイルシステム上やJarファイル中に展開されている、クラスやリソースの集まりを横断的に処理するためのユーティリティです。
     * <p>
     * 対象となるファイルシステム上のディレクトリや、Jarファイルの一などは{@link URL}によって与えられます。 URLのプロトコルに応じて適切な
     * {@link Traverser}が返されるので、そのメソッドを呼び出すことでクラスやリソースをトラバースすることが出来ます。
     * </p>
     * <p>
     * 次のプロトコルをサポートしています。
     * </p>
     * <ul>
     * <li>{@literal file}</li>
     * <li>{@literal jar}</li>
     * <li>{@literal wsjar} (WebShpere独自プロトコル、{@literal jar}の別名)</li>
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/jar/JarInputStreamUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.jar;
    
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.jar.JarEntry;
    import java.util.jar.JarInputStream;
    
    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * {@link JarInputStream}用のユーティリティクラスです。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  9. pom.xml

    				<artifactId>maven-compiler-plugin</artifactId>
    			</plugin>
    			<plugin>
    				<artifactId>maven-source-plugin</artifactId>
    				<executions>
    					<execution>
    						<id>source-jar</id>
    						<phase>package</phase>
    						<goals>
    							<goal>jar</goal>
    						</goals>
    					</execution>
    				</executions>
    			</plugin>
    			<plugin>
    				<artifactId>maven-war-plugin</artifactId>
    				<configuration>
    					<webResources>
    XML
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Mon Apr 22 12:06:58 GMT 2024
    - 48.7K bytes
    - Viewed (0)
  10. deps.xml

    		</get>
    		<copy file="${target.dir}/${jar.artifactId}-${file.version}.jar"
    			todir="${crawler.dir}/lib"/>
    		<copy file="${target.dir}/${jar.artifactId}-${file.version}.jar"
    			todir="${suggest.dir}/lib"/>
    		<copy file="${target.dir}/${jar.artifactId}-${file.version}.jar"
    			todir="${thumbnail.dir}/lib"/>
    	</target>
    
    	<target name="install.plugin.jar">
    XML
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Sat Apr 13 11:44:26 GMT 2024
    - 3.1K bytes
    - Viewed (0)
Back to top