Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for JansiStorage (0.18 sec)

  1. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/jansi/JansiStorage.java

     * limitations under the License.
     */
    
    package org.gradle.internal.nativeintegration.jansi;
    
    import java.io.File;
    
    public class JansiStorage {
    
        private final JansiLibrary jansiLibrary;
        private final File targetLibFile;
    
        public JansiStorage(JansiLibrary jansiLibrary, File targetLibFile) {
            this.jansiLibrary = jansiLibrary;
            this.targetLibFile = targetLibFile;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/jansi/JansiBootPathConfigurer.java

         */
        public void configure(File storageDir) {
            JansiStorage jansiStorage = locator.locate(storageDir);
    
            if (jansiStorage != null) {
                File libFile = jansiStorage.getTargetLibFile();
                libFile.getParentFile().mkdirs();
    
                if (!libFile.exists()) {
                    InputStream libraryInputStream = getClass().getResourceAsStream(jansiStorage.getJansiLibrary().getResourcePath());
                    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/jansi/JansiStorageLocatorTest.groovy

            def jansiLibrary = new JansiLibrary(platform, nativeLibraryName)
    
            when:
            def jansiStorage = locator.locate(tmpDir.testDirectory)
    
            then:
            1 * factory.create() >> jansiLibrary
            jansiStorage.jansiLibrary == jansiLibrary
            jansiStorage.targetLibFile == new File(locator.makeVersionSpecificDir(tmpDir.testDirectory), "$platform/$nativeLibraryName")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/jansi/JansiStorageLocator.java

            this.factory = factory;
        }
    
        public JansiStorage locate(File storageDir) {
            JansiLibrary jansiLibrary = factory.create();
    
            if (jansiLibrary != null) {
                File jansiDir = makeVersionSpecificDir(storageDir);
                File targetLibFile = new File(jansiDir, jansiLibrary.getPath());
                return new JansiStorage(jansiLibrary, targetLibFile);
            }
    
            return null;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/NativeServicesIntegrationTest.groovy

        def nativeDir = new File(executer.gradleUserHomeDir, 'native')
        def library
    
        def setup() {
            def jansiLibraryLocator = new JansiStorageLocator()
            def jansiStorage = jansiLibraryLocator.locate(nativeDir)
            library = jansiStorage.targetLibFile
        }
    
        def "native services libs are unpacked to gradle user home dir"() {
            given:
            executer.withArguments('-q')
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.internal.nativeintegration.jansi.JansiStorage> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (JansiStorage.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top