Package org.jboss.shrinkwrap.api.spec

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addResource()


        Distributor.class,
        Item.class
    );

    ArchivePath path = ArchivePaths.create( "META-INF/orm.xml" );
    archive.addResource( "explicitpar/META-INF/orm.xml", path );

    path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "explicitpar/META-INF/persistence.xml", path );

    File testPackage = new File( targetDir, fileName );
View Full Code Here


    ArchivePath path = ArchivePaths.create( "META-INF/orm.xml" );
    archive.addResource( "explicitpar/META-INF/orm.xml", path );

    path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "explicitpar/META-INF/persistence.xml", path );

    File testPackage = new File( targetDir, fileName );
    archive.as( ZipExporter.class ).exportZip( testPackage, true );
    return testPackage;
  }
View Full Code Here

        Elephant.class,
        Carpet.class
    );

    ArchivePath path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "explodedpar/META-INF/persistence.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/explodedpar/Elephant.hbm.xml" );
    archive.addResource( "explodedpar/org/hibernate/ejb/test/pack/explodedpar/Elephant.hbm.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/explodedpar/package-info.class" );
View Full Code Here

    ArchivePath path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "explodedpar/META-INF/persistence.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/explodedpar/Elephant.hbm.xml" );
    archive.addResource( "explodedpar/org/hibernate/ejb/test/pack/explodedpar/Elephant.hbm.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/explodedpar/package-info.class" );
    archive.addResource( "org/hibernate/ejb/test/pack/explodedpar/package-info.class", path );

    File testPackage = new File( targetDir, fileName );
View Full Code Here

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/explodedpar/Elephant.hbm.xml" );
    archive.addResource( "explodedpar/org/hibernate/ejb/test/pack/explodedpar/Elephant.hbm.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/explodedpar/package-info.class" );
    archive.addResource( "org/hibernate/ejb/test/pack/explodedpar/package-info.class", path );

    File testPackage = new File( targetDir, fileName );
    archive.as( ExplodedExporter.class ).exportExploded( targetDir );
    return testPackage;
  }
View Full Code Here

    archive.addClasses(
        Caipirinha.class
    );

    ArchivePath path = ArchivePaths.create( "META-INF/orm2.xml" );
    archive.addResource( "excludehbmpar/META-INF/orm2.xml", path );

    path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "excludehbmpar/META-INF/persistence.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/excludehbmpar/Mouse.hbm.xml" );
View Full Code Here

    ArchivePath path = ArchivePaths.create( "META-INF/orm2.xml" );
    archive.addResource( "excludehbmpar/META-INF/orm2.xml", path );

    path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "excludehbmpar/META-INF/persistence.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/excludehbmpar/Mouse.hbm.xml" );
    archive.addResource( "excludehbmpar/org/hibernate/ejb/test/pack/excludehbmpar/Mouse.hbm.xml", path );

    File testPackage = new File( targetDir, fileName );
View Full Code Here

    path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "excludehbmpar/META-INF/persistence.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/excludehbmpar/Mouse.hbm.xml" );
    archive.addResource( "excludehbmpar/org/hibernate/ejb/test/pack/excludehbmpar/Mouse.hbm.xml", path );

    File testPackage = new File( targetDir, fileName );
    archive.as( ZipExporter.class ).exportZip( testPackage, true );
    return testPackage;
  }
View Full Code Here

        Morito.class,
        Item.class
    );

    ArchivePath path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "cfgxmlpar/META-INF/persistence.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/cfgxmlpar/hibernate.cfg.xml" );
    archive.addResource( "cfgxmlpar/org/hibernate/ejb/test/pack/cfgxmlpar/hibernate.cfg.xml", path );

    File testPackage = new File( targetDir, fileName );
View Full Code Here

    ArchivePath path = ArchivePaths.create( "META-INF/persistence.xml" );
    archive.addResource( "cfgxmlpar/META-INF/persistence.xml", path );

    path = ArchivePaths.create( "org/hibernate/ejb/test/pack/cfgxmlpar/hibernate.cfg.xml" );
    archive.addResource( "cfgxmlpar/org/hibernate/ejb/test/pack/cfgxmlpar/hibernate.cfg.xml", path );

    File testPackage = new File( targetDir, fileName );
    archive.as( ZipExporter.class ).exportZip( testPackage, true );
    return testPackage;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.