Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for JvmSourceFile (0.17 sec)

  1. platforms/jvm/language-jvm/src/testFixtures/groovy/org/gradle/integtests/fixtures/jvm/JvmSourceFile.java

    package org.gradle.integtests.fixtures.jvm;
    
    import com.google.common.base.Joiner;
    import org.gradle.test.fixtures.file.TestFile;
    
    public class JvmSourceFile {
        private final String path;
        private final String name;
        private final String content;
    
        public JvmSourceFile(String path, String name, String content) {
            this.content = content;
            this.path = path;
            this.name = name;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. platforms/jvm/scala/src/testFixtures/groovy/org/gradle/language/scala/fixtures/TestScalaComponent.groovy

    import org.gradle.integtests.fixtures.jvm.IncrementalTestJvmComponent
    import org.gradle.integtests.fixtures.jvm.JvmSourceFile
    import org.gradle.test.fixtures.file.TestFile
    
    class TestScalaComponent extends IncrementalTestJvmComponent {
    
        String languageName = "scala"
    
        List<JvmSourceFile> sources = [
                new JvmSourceFile("compile/test", "Person.scala", '''
    package compile.test;
    
    class Person(name: String, age: Integer) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/language/groovy/fixtures/TestGroovyComponent.groovy

    import org.gradle.integtests.fixtures.jvm.JvmSourceFile
    import org.gradle.test.fixtures.file.TestFile
    
    class TestGroovyComponent extends IncrementalTestJvmComponent {
        String languageName = "groovy"
        String sourceSetTypeName = "GroovySourceSet"
    
        List<JvmSourceFile> sources = [
            new JvmSourceFile("compile/test", "Person.groovy", '''
    package compile.test
    
    import java.util.Arrays
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/testFixtures/groovy/org/gradle/language/fixtures/BadJavaComponent.groovy

     * limitations under the License.
     */
    
    
    
    package org.gradle.language.fixtures
    
    import org.gradle.integtests.fixtures.jvm.JvmSourceFile
    
    class BadJavaComponent extends TestJavaComponent {
        List<JvmSourceFile> sources = [
            new JvmSourceFile("compile/test", "Person.java", '''
    package compile.test;
    
    import java.util.Arrays;
    
    public class Person {
        String name;
        int age;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/testFixtures/groovy/org/gradle/language/scala/fixtures/BadScalaLibrary.groovy

    import org.gradle.integtests.fixtures.jvm.JvmSourceFile
    
    class BadScalaLibrary {
        List<JvmSourceFile> sources = [
                new JvmSourceFile("compile/test", "Person.scala", '''
    package compile.test;
    
    class Person(name: String, age: Integer) {
        def toString(): String = name + ", " + age;
    }'''),
                new JvmSourceFile("compile/test", "Person2.scala", '''
    package compile.test;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/jvm/language-jvm/src/testFixtures/groovy/org/gradle/integtests/fixtures/jvm/TestJvmComponent.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    abstract class TestJvmComponent {
        abstract List<JvmSourceFile> getSources()
    
        abstract String getLanguageName()
    
        List<JvmSourceFile> getExpectedClasses() {
            return getSources().collect{it.classFile}
        }
    
        List<JvmSourceFile> getExpectedOutputs(){
            return getSources().collect { it.classFile } + resources;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/testFixtures/groovy/org/gradle/language/fixtures/TestJavaComponent.groovy

    import org.gradle.integtests.fixtures.jvm.IncrementalTestJvmComponent
    import org.gradle.integtests.fixtures.jvm.JvmSourceFile
    import org.gradle.test.fixtures.file.TestFile
    
    class TestJavaComponent extends IncrementalTestJvmComponent{
        String languageName = "java"
    
        List<JvmSourceFile> sources = [
            new JvmSourceFile("compile/test", "Person.java", '''
    package compile.test;
    
    import java.util.Arrays;
    
    public class Person {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. platforms/jvm/scala/src/testFixtures/groovy/org/gradle/language/scala/fixtures/TestJointCompiledComponent.groovy

     */
    
    package org.gradle.language.scala.fixtures
    
    import org.gradle.integtests.fixtures.jvm.JvmSourceFile
    import org.gradle.integtests.fixtures.jvm.TestJvmComponent
    
    class TestJointCompiledComponent extends TestJvmComponent {
    
        String languageName = "scala"
    
        List<JvmSourceFile> sources = [
                new JvmSourceFile("compile/test", "Person.scala", '''
    package compile.test;
    
    class Person(name: String, age: Integer) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top