Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 63 for relative (0.89 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

            if (relativeSource.isAbsolute()) {
                throw new IllegalArgumentException("Supplied URI is not relative");
            }
            URI source = baseURI.resolve(relativeSource);
            if (!source.toASCIIString().startsWith(baseURI.toASCIIString())) {
                throw new IllegalArgumentException("Supplied relative URI escapes baseUrl");
            }
            GetTask getTask = new GetTask(source);
            getTask.setDataPath(target);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. maven-embedder/src/main/java/org/apache/maven/cli/ResolveFile.java

    import java.nio.file.Paths;
    
    /**
     * Resolve relative file path against the given base directory
     */
    public class ResolveFile {
        public static File resolveFile(File file, String baseDirectory) {
            if (file == null) {
                return null;
            } else if (file.isAbsolute()) {
                return file;
            } else if (file.getPath().startsWith(File.separator)) {
                // drive-relative Windows path
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Nov 22 13:26:01 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelPathTranslator.java

     */
    package org.apache.maven.api.services.model;
    
    import java.nio.file.Path;
    
    import org.apache.maven.api.model.Model;
    import org.apache.maven.api.services.ModelBuilderRequest;
    
    /**
     * Resolves relative paths of a model against a specific base directory.
     *
     */
    public interface ModelPathTranslator {
    
        /**
         * Resolves the well-known paths of the specified model against the given base directory. Paths within plugin
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/api/services/model/PathTranslator.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.services.model;
    
    import java.nio.file.Path;
    
    /**
     * Resolves relative paths against a specific base directory.
     *
     */
    public interface PathTranslator {
    
        /**
         * Resolves the specified path against the given base directory. The resolved path will be absolute and uses the
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource2.java

     */
    public interface ModelSource2 extends ModelSource {
        /**
         * Returns model source identified by a path relative to this model source POM. Implementation <strong>MUST</strong>
         * be able to accept <code>relPath</code> parameter values that
         * <ul>
         * <li>use either / or \ file path separator</li>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Nov 22 13:26:01 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. apache-maven/src/assembly/shared/mvnvalidate

    ## resolve links - $0 may be a link to Maven's home
    PRG="$0"
    
    # need this for relative symlinks
    while [ -h "$PRG" ] ; do
      ls=`ls -ld "$PRG"`
      link=`expr "$ls" : '.*-> \(.*\)$'`
      if expr "$link" : '/.*' > /dev/null; then
        PRG="$link"
      else
        PRG="`dirname "$PRG"`/$link"
      fi
    done
    
    saveddir=`pwd`
    
    MAVEN_HOME=`dirname "$PRG"`/..
    
    # make it fully qualified
    MAVEN_HOME=`cd "$MAVEN_HOME" && pwd`
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sat May 23 07:59:32 UTC 2020
    - 418 bytes
    - Viewed (0)
  7. maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource3.java

     * when pointing to a directory.
     */
    public interface ModelSource3 extends ModelSource2 {
        /**
         * Returns model source identified by a path relative to this model source POM. Implementation <strong>MUST</strong>
         * accept <code>relPath</code> parameter values that
         * <ul>
         * <li>use either / or \ file path separator</li>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Aug 23 19:25:14 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java

         * @throws IOException Model read problem
         */
        @Test
        void testFlatTrickyUrls() throws IOException {
            // parent references child with artifactId (which is not directory name)
            // then relative path calculation will fail during build from disk but success when calculated from repo
            try {
                // build from disk expected to fail
                testInheritance("tricky-flat-artifactId-urls", false);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 13 11:39:50 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationPathTranslator.java

     * under the License.
     */
    package org.apache.maven.configuration;
    
    import java.io.File;
    
    /**
     * Postprocesses filesystem paths. For instance, a path translator might want to resolve relative paths given in the
     * bean configuration against some base directory.
     *
     */
    public interface BeanConfigurationPathTranslator {
    
        /**
         * Translates the specified path.
         *
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferResource.java

         *
         * @return The base URL of the repository or an empty string if unknown, never {@code null}.
         */
        String getRepositoryUrl();
    
        /**
         * The path of the artifact relative to the repository's base URL.
         *
         * @return The path of the artifact, never {@code null}.
         */
        String getName();
    
        /**
         * Gets the full URL of the artifact.
         *
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top