Giter VIP home page Giter VIP logo

cditck-porting's Introduction


To run the CDI 2.0.x TCK against Glassfish 5.0, follow the steps in this file. The ant targets provided will call Maven which will download the TCK artifacts and execute the TCK against the Java EE Reference implementation.

NOTE: For the latest CDI TCK Documentation and instructions on how to configure the TCK to run against a different implementation, please see http://docs.jboss.org/cdi/tck/reference/2.0.0.Final/en-US/html_single/

Other links:

TCK Bundle: http://sourceforge.net/projects/jboss/files/CDI-TCK/2.0.0.Final/ TCK workspace: https://github.com/jboss/cdi-tck


Steps to run the tests

  • Install Maven - http://maven.apache.org/download.cgi Ensure that mvn is in your path Set MAVEN_HOME in your environment

  • Install Ant - Use Apache Ant packaged with Java EE CTS bundle available at "javaeetck/tools/ant", Alternatively download it from http://ant.apache.org/bindownload.cgi Ensure that ant is in your path

  • Install Glassfish V5.0 refer to this as GF_HOME

  • Unzip the CDI porting bundle in the top level of the CDI TCK (not required). Refer to this location as PORTING_HOME

  • cd to PORTING_HOME and edit the build.properties file

  • set the JAVA_HOME environment variable in your shell environment

  • set porting.home, and glassfish.home in build.properties

  • If running against a JavaEE Web Profile Impl which does not support ear files, Edit the $PORTING_HOME/build.properties and set javaee.level=web

  • If necessary, modify the following default property values in build.xml for your environment On windows, try setting max.heap.size=1024 and max.perm.gen.size=512

  • Invoke ant sigtest to run the signature tests

  • Invoke 'ant test' to run the TestNG test suite

  • To run the sig tests and the TestNG tests in a single run, you can invoke ant run.all.tests

  • If running Glassfish with a security manager (by executing $GF_HOME/bin/asadmin create-jvm-options -Djava.security.manager, you must add the following permissions to the server.policy file...

grant { permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; permission org.osgi.framework.AdminPermission "", ""; permission java.lang.RuntimePermission "createClassLoader"; permission javax.security.auth.AuthPermission "modifyPrincipals"; permission java.io.SerializablePermission "enableSubclassImplementation"; permission java.lang.RuntimePermission "accessClassInPackage.com.sun.proxy"; };

cditck-porting's People

Contributors

anajosep avatar bhatpmk avatar

Watchers

 avatar  avatar

Forkers

leehvip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.