Package com.sun.enterprise.util.io

Examples of com.sun.enterprise.util.io.ServerDirs


        }
        return dasprops;
    }

    final protected void whackFilesystem() throws CommandException {
        ServerDirs dirs = getServerDirs();
        File whackee = dirs.getServerDir();
        File parent = dirs.getServerParentDir();
        File grandParent = dirs.getServerGrandParentDir();

        if (whackee == null || !whackee.isDirectory()) {
            throw new CommandException(Strings.get("DeleteInstance.noWhack",
                    whackee));
        }
View Full Code Here


     */
    @Override
    protected void prepare()
            throws CommandException, CommandValidationException {
        super.prepare();
        setServerDirs(new ServerDirs()); // do-nothing ServerDirs object...
    }
View Full Code Here

        /*
         * If the caller did not pass any of the values we can use to locate
         * the domain.xml, then we cannot run in client-cert mode.
         */
        final ServerDirs dirs = selector.dirs();
        if (dirs == null) {
            return null;
        }

        final File domainXMLFile = dirs.getDomainXml();
        if ( ! domainXMLFile.exists()) {
            return null;
        }

        try {
View Full Code Here

        }

        // add das location from das.properties if needed
        if (server.isInstance()) {
            try {
                ServerDirs sDirs = new ServerDirs(env.getInstanceRoot());
                File dasPropsFile = sDirs.getDasPropertiesFile();
                if (logger.isLoggable(Level.FINE)) {
                    logger.log(Level.FINE, String.format(
                        "found das.props file at %s",
                        dasPropsFile.getAbsolutePath()));
                }
View Full Code Here

        }
        return dasprops;
    }

    final protected void whackFilesystem() throws CommandException {
        ServerDirs dirs = getServerDirs();
        File whackee = dirs.getServerDir();
        File parent = dirs.getServerParentDir();
        File grandParent = dirs.getServerGrandParentDir();

        if (whackee == null || !whackee.isDirectory()) {
            throw new CommandException(Strings.get("DeleteInstance.noWhack",
                    whackee));
        }
View Full Code Here

        /*
         * If the caller did not pass any of the values we can use to locate
         * the domain.xml, then we cannot run in client-cert mode.
         */
        final ServerDirs dirs = selector.dirs();
        if (dirs == null) {
            return null;
        }

        final File domainXMLFile = dirs.getDomainXml();
        if ( ! domainXMLFile.exists()) {
            return null;
        }

        try {
View Full Code Here

        }
        return dasprops;
    }

    final protected void whackFilesystem() throws CommandException {
        ServerDirs dirs = getServerDirs();
        File whackee = dirs.getServerDir();
        File parent = dirs.getServerParentDir();
        File grandParent = dirs.getServerGrandParentDir();

        if (whackee == null || !whackee.isDirectory()) {
            throw new CommandException(Strings.get("DeleteInstance.noWhack",
                    whackee));
        }
View Full Code Here

        }

        // add das location from das.properties if needed
        if (server.isInstance()) {
            try {
                ServerDirs sDirs = new ServerDirs(env.getInstanceRoot());
                File dasPropsFile = sDirs.getDasPropertiesFile();
                if (logger.isLoggable(Level.FINE)) {
                    logger.log(Level.FINE, String.format(
                        "found das.props file at %s",
                        dasPropsFile.getAbsolutePath()));
                }
View Full Code Here

        }

        // add das location from das.properties if needed
        if (server.isInstance()) {
            try {
                ServerDirs sDirs = new ServerDirs(env.getInstanceRoot());
                File dasPropsFile = sDirs.getDasPropertiesFile();
                if (GMS_LOGGER.isLoggable(LogLevel.FINE)) {
                    GMS_LOGGER.log(LogLevel.FINE, String.format(
                        "found das.props file at %s",
                        dasPropsFile.getAbsolutePath()));
                }
View Full Code Here

     */
    @Override
    protected void prepare()
            throws CommandException, CommandValidationException {
        super.prepare();
        setServerDirs(new ServerDirs()); // do-nothing ServerDirs object...
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.util.io.ServerDirs

Copyright © 2018 www.massapicom. 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.