/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: MigrateUnconfigureDomainXMLTask.java,v 1.2 2008/06/25 05:52:11 qcheng Exp $
*
*/
/**
* Class to remove previous agent's config in domain.xml.
*/
/*
* For remote application server instance, set
* STR_SAVE_REMOTE_AGENT_INSTALL_DIR_KEY
* as previous agent's install directory before unconfigure.
*/
if (remoteHomeDir == null) {
return;
}
} else {
}
} else {
}
}
/*
* For remote application server instance, set
* STR_SAVE_REMOTE_AGENT_INSTALL_DIR_KEY as new agent's install directory
* after unconfigure, so other install tasks will use the new one.
*/
if (remoteHomeDir == null) {
return;
}
}
if (migrateRemoteAgentName != null &&
}
}
/*
* get previous agent's classpath for unconfiguring.
*/
// get the agent install directory on a remote instance
if (remoteHomeDir != null) {
"MigrateUnconfigureDomainXMLTask." +
"getAgentClassPathEntries: Modified libPath = "
+ libPath);
}
"getAgentClasspathEntries(): " +
}
/*
* get previous agent's home directory.
*/
return MigrateFromInstFinderStore.getProductHome();
}
/*
* get previous agent's lib directory.
*/
}
/*
* get previous agent's locale directory.
*/
}
/*
* get previous agent's config directory.
*/
}
/*
* get previous agent instance's name.
*/
// Get the user input for agent instance name only when instance is
// remote.
if (agentInstanceName != null &&
"MigrateUnconfigureDomainXMLTask.getAgentInstanceName():" +
"Using remote agent instance name : "+ agentInstanceName);
} else {
}
return instanceName;
}
/*
* If any, get previous agent's install directory for remote appserver
* instance.
*/
return null;
} else {
return remoteHomeDir;
}
}
}