This commit is contained in:
Ren RenJuan 2014-01-23 02:59:22 +00:00
parent fb651febff
commit 0bf70c6e42
10 changed files with 282 additions and 160 deletions

164
.cproject
View File

@ -55,60 +55,8 @@
<storageModule moduleId="refreshScope"/> <storageModule moduleId="refreshScope"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"> <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
<buildTargets> <buildTargets>
<target name="libACTK1_0.so" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>libACTK1_0.so</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="clean" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>clean</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="tests" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>tests</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="dirs" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>dirs</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="dclean" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>dclean</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="all" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>all</buildTarget>
<stopOnError>false</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="xsd2xml" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>xsd2xml</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="clean" path="ACTK1_3_2" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="clean" path="ACTK1_3_2" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>clean</buildTarget> <buildTarget>clean</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -116,7 +64,6 @@
</target> </target>
<target name="all" path="ACTK1_3_2" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="all" path="ACTK1_3_2" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>all</buildTarget> <buildTarget>all</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -124,14 +71,68 @@
</target> </target>
<target name="tests" path="ACTK1_3_2" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="tests" path="ACTK1_3_2" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>tests</buildTarget> <buildTarget>tests</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders> <runAllBuilders>true</runAllBuilders>
</target> </target>
<target name="clean" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="libACTK1_0.so" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/> <buildArguments/>
<buildTarget>libACTK1_0.so</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="clean" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>clean</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="tests" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>tests</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="dirs" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>dirs</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="dclean" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>dclean</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="all" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>all</buildTarget>
<stopOnError>false</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="adHoc" path="ACTK1_0" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>build/LPCommands.o</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>false</runAllBuilders>
</target>
<target name="clean" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>clean</buildTarget> <buildTarget>clean</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -139,6 +140,7 @@
</target> </target>
<target name="dirs" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="dirs" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>dirs</buildTarget> <buildTarget>dirs</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -146,6 +148,7 @@
</target> </target>
<target name="apig-cli" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="apig-cli" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>apig-cli</buildTarget> <buildTarget>apig-cli</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -153,7 +156,6 @@
</target> </target>
<target name="build/commander.o" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="build/commander.o" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>build/commander.o</buildTarget> <buildTarget>build/commander.o</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -161,7 +163,6 @@
</target> </target>
<target name="build/ausreg-cd" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="build/ausreg-cd" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>build/ausreg-cd</buildTarget> <buildTarget>build/ausreg-cd</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -169,7 +170,6 @@
</target> </target>
<target name="cliever" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="cliever" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>cliever</buildTarget> <buildTarget>cliever</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -177,36 +177,13 @@
</target> </target>
<target name="all" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="all" path="APIG" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>all</buildTarget> <buildTarget>all</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders> <runAllBuilders>true</runAllBuilders>
</target> </target>
<target name="AusRegEPPTK.so" path="AusRegEPPTK" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>all</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="tests" path="AusRegEPPTK" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>tests</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="clean" path="AusRegEPPTK" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildTarget>clean</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="cliever" path="AusRegCliever" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="cliever" path="AusRegCliever" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>cliever</buildTarget> <buildTarget>cliever</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -214,6 +191,7 @@
</target> </target>
<target name="clean" path="AusRegCliever" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="clean" path="AusRegCliever" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>clean</buildTarget> <buildTarget>clean</buildTarget>
<stopOnError>false</stopOnError> <stopOnError>false</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -221,6 +199,7 @@
</target> </target>
<target name="distclean" path="AusRegCliever" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="distclean" path="AusRegCliever" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>distclean</buildTarget> <buildTarget>distclean</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
@ -228,11 +207,36 @@
</target> </target>
<target name="build/ausreg-md" path="AusRegCliever" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> <target name="build/ausreg-md" path="AusRegCliever" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand> <buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>build/ausreg-md</buildTarget> <buildTarget>build/ausreg-md</buildTarget>
<stopOnError>true</stopOnError> <stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand> <useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders> <runAllBuilders>true</runAllBuilders>
</target> </target>
<target name="AusRegEPPTK.so" path="AusRegEPPTK" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>all</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="tests" path="AusRegEPPTK" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>tests</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="clean" path="AusRegEPPTK" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>clean</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
</buildTargets> </buildTargets>
</storageModule> </storageModule>
</cproject> </cproject>

2
.gitignore vendored
View File

@ -1 +1 @@
.cproject .settings .project *.o *.so *.d .cproject .settings .project **/*.o **/*.so **/*.d **/libACTK1_o.so **/drde-cliever **/drde-cd

View File

@ -115,27 +115,27 @@ $(BUILD_OBJ_DIR)/%: $(BUILD_OBJ_DIR)/%.o
# #
# The toolkit raises the c++ "static initialization fiasco" situation. Use this as needed # The toolkit raises the c++ "static initialization fiasco" situation. Use this as needed
# #
#ARTKOBJS= build/XMLGregorianCalendar.o build/XMLParser.o build/XMLWriter.o build/ACSession.o build/DomainAddRem.o build/EnumDomainInfoResponse.o build/log.o build/PostalInfoType.o build/SessionManagerPropertiesImpl.o \ ARTKOBJS= build/XMLGregorianCalendar.o build/XMLParser.o build/XMLWriter.o build/ACSession.o build/DomainAddRem.o build/EnumDomainInfoResponse.o build/log.o build/PostalInfoType.o build/SessionManagerPropertiesImpl.o \
#build/RegistrantObjectType.o build/mdLogger.o \ build/RegistrantObjectType.o \
#build/AddRemType.o build/DomainCheckResponse.o build/EnumDomainUpdateCommand.o build/LPECheckResponse.o build/Properties.o build/SessionPoolImpl.o \#build/boolean.o build/DomainCreateCommand.o build/EnumType.o build/LPECreateCommand.o build/ProtocolExtensionCommand.o build/SSLException.o \ build/AddRemType.o build/DomainCheckResponse.o build/EnumDomainUpdateCommand.o build/Properties.o build/SessionPoolImpl.o \
#build/CertificateUserMismatchException.o build/DomainCreateResponse.o build/EPPDateFormatter.o build/LPECreateResponse.o build/ReceiveSE.o build/StandardCommandType.o \ build/boolean.o build/DomainCreateCommand.o build/EnumType.o build/ProtocolExtensionCommand.o build/SSLException.o \
#build/CheckResponse.o build/DomainInfoKVResponseExtension.o build/EPPWriter.o build/NamespaceResolver.o build/StandardObjectType.o \ build/CertificateUserMismatchException.o build/DomainCreateResponse.o build/EPPDateFormatter.o build/ReceiveSE.o build/StandardCommandType.o \
#build/CLTRID.o build/DomainInfoResponse.o build/ErrorPkg.o build/NAPTR.o build/RegistrantTransferCommandType.o build/StringUtils.o \ build/CheckResponse.o build/DomainInfoKVResponseExtension.o build/EPPWriter.o build/NamespaceResolver.o build/StandardObjectType.o \
#build/CommandCounter.o build/DomainKVCommandExtension.o build/Greeting.o build/NotificationResponse.o build/ResponseExtension.o build/SyncExtension.o \ build/CLTRID.o build/DomainInfoResponse.o build/ErrorPkg.o build/NAPTR.o build/RegistrantTransferCommandType.o build/StringUtils.o \
#build/Command.o build/DomainNotificationResponse.o build/HostAddRem.o build/ObjectCommand.o build/Response.o build/SystemProperties.o \ build/CommandCounter.o build/DomainKVCommandExtension.o build/Greeting.o build/NotificationResponse.o build/ResponseExtension.o build/SyncExtension.o \
#build/config.o build/DomainRegistrantTransferCommand.o build/HostCheckResponse.o build/ResultCounter.o build/Timer.o \ build/Command.o build/DomainNotificationResponse.o build/HostAddRem.o build/ObjectCommand.o build/Response.o build/SystemProperties.o \
#build/Constants.o build/DomainRegistrantTransferResponse.o build/HostCreateCommand.o build/Result.o build/TLSContext.o \ build/config.o build/DomainRegistrantTransferCommand.o build/HostCheckResponse.o build/LPRespExtender.o build/ResultCounter.o build/Timer.o \
#build/ContactCheckResponse.o build/DomainRenewCommand.o build/HostCreateResponse.o build/LPEDomainObjectType.o build/SecDNSChgType.o build/TLSSession.o \ build/Constants.o build/DomainRegistrantTransferResponse.o build/HostCreateCommand.o build/LPCmdExtender.o build/Result.o build/TLSContext.o \
#build/ContactCreateCommand.o build/DomainRenewResponse.o build/HostInfoResponse.o build/SecDNSDSData.o build/TLSSocket.o \ build/ContactCheckResponse.o build/DomainRenewCommand.o build/HostCreateResponse.o build/LPLaunch.o build/SecDNSChgType.o build/TLSSession.o \
#build/ContactCreateResponse.o build/DomainSecDNSCreateCommandExtension.o build/HostUpdateCommand.o build/SecDNSDSOrKeyType.o build/TransferCommand.o \ build/ContactCreateCommand.o build/DomainRenewResponse.o build/HostInfoResponse.o build/LPExtension.o build/SecDNSDSData.o build/TLSSocket.o \
#build/ContactInfoResponse.o build/DomainSecDNSInfoResponseExtension.o build/InetAddress.o build/LPEExtension.o build/SecDNSExtension.o build/TransferOp.o \ build/ContactCreateResponse.o build/DomainSecDNSCreateCommandExtension.o build/HostUpdateCommand.o build/SecDNSDSOrKeyType.o build/TransferCommand.o \
#build/ContactNotificationResponse.o build/DomainSecDNSUpdateCommandExtension.o build/InfoResponse.o build/LPELPECreateCommand.o build/SecDNSKeyData.o build/TransferResponse.o \ build/ContactInfoResponse.o build/DomainSecDNSInfoResponseExtension.o build/InetAddress.o build/SecDNSExtension.o build/TransferOp.o \
#build/ContactTransferResponse.o build/DomainTransferResponse.o build/init.o build/Period.o build/SecDNSRemType.o build/UserPassMismatchException.o \ build/ContactNotificationResponse.o build/DomainSecDNSUpdateCommandExtension.o build/InfoResponse.o build/SecDNSKeyData.o build/TransferResponse.o \
#build/ContactUpdateCommand.o build/DomainUpdateCommand.o build/IPVersion.o build/PeriodUnit.o build/SendSE.o build/XMLDocument.o \ build/ContactTransferResponse.o build/DomainTransferResponse.o build/init.o build/Period.o build/SecDNSRemType.o build/UserPassMismatchException.o \
#build/CreateResponse.o build/DomainUpdateSyncCommandExtension.o build/KVExtension.o build/PollOperation.o build/SessionFactory.o \ build/ContactUpdateCommand.o build/DomainUpdateCommand.o build/IPVersion.o build/PeriodUnit.o build/SendSE.o build/XMLDocument.o \
#build/DataResponse.o build/E164Extension.o build/Logger.o build/PollResponse.o build/SessionManagerFactory.o \ build/CreateResponse.o build/DomainUpdateSyncCommandExtension.o build/KVExtension.o build/PollOperation.o build/SessionFactory.o \
#build/Disclose.o build/EnumDomainCreateCommand.o build/LoginCommand.o build/PostalInfo.o build/SessionManagerImpl.o build/DataResponse.o build/E164Extension.o build/Logger.o build/PollResponse.o build/SessionManagerFactory.o \
build/Disclose.o build/EnumDomainCreateCommand.o build/LoginCommand.o build/PostalInfo.o build/SessionManagerImpl.o
.PHONY: tests .PHONY: tests
tests: all $(test_execs) tests: all $(test_execs)
@ -148,7 +148,7 @@ dirs:
libACTK1_0.so: libACTK1_0.so:
$(BUILD_LIB_DIR)/libACTK1_0.so: $(objs) $(BUILD_LIB_DIR)/libACTK1_0.so: $(objs)
$(CXX) $(LDFLAGS) $(PRODORDEV) -shared $(objs) -o $@ $(CXX) $(LDFLAGS) $(PRODORDEV) -shared $(ARTKOBJS) -o $@
xsd2xml: xsd2xml:
$(BUILD_OBJ_DIR)/xsd2xml: build/parser.o $(BUILD_OBJ_DIR)/xsd2xml: build/parser.o

View File

@ -0,0 +1,14 @@
#include "se/LPE/LPExtension.hpp"
std::string& LPExtension::getURI() const
{
static std::string uri = "urn:ietf:params:xml:ns:launch-1.0";
return uri;
}
std::string& LPExtension::getSchemaLocation() const
{
static std::string loc = "urn:ietf:params:xml:ns:launch-1.0 launch-1.0.xsd";
return loc;
}

View File

@ -0,0 +1,29 @@
#ifndef __LPEXTENSION_HPP
#define __LPEXTENSION_HPP
#include "se/Extension.hpp"
/**
* A bundled set of constants representing the .ae EPP extension
* schema. The namespace URI uniquely identifies the extension.
*/
class LPExtension : public Extension
{
public:
virtual ~LPExtension(void) { }
/**
* Get the globally unique namespace URI which identifies this extension.
*/
virtual std::string& getURI() const;
/**
* Get the location hint for the XML schema used to validate EPP service
* element instances using this extension.
*/
virtual std::string& getSchemaLocation() const;
};
#endif // __LPEXTENSION_HPP

View File

@ -0,0 +1,16 @@
#include "xml/XMLHelper.hpp"
#include "LPLaunch.hpp"
void LPLaunch::appendData(XMLWriter* xmlWriter, DOMElement* addElement)
{
DOMElement* lpDataElement = xmlWriter->appendChild(addElement, "launch");
XMLHelper::setTextContent(xmlWriter->appendChild(lpDataElement, "phase"), phase);
XMLHelper::setTextContent(xmlWriter->appendChild(lpDataElement, "status"), status);
}
void LPLaunch::createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement)
{
}

View File

@ -0,0 +1,40 @@
#ifndef LPDATA_HPP_
#define LPDATA_HPP_
#include <string>
#include "xercesc/dom/DOMElement.hpp"
#include "xml/XMLWriter.hpp"
using namespace std;
class LPLaunch
{
public:
LPLaunch() :
phase(""),
status(")")
{}
virtual ~LPLaunch() {}
const string getPhase() const;
const string getStatus() const;
void appendData(XMLWriter* xmlWriter, DOMElement* addElement);
void createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement);
private:
string phase;
string status;
};
inline const string LPLaunch::getPhase() const
{
return phase;
}
inline const string LPLaunch::getStatus() const
{
return status;
}
#endif /* LPDATA_HPP_ */

Binary file not shown.

View File

@ -8,8 +8,7 @@
#include "session/StatsManager.hpp" #include "session/StatsManager.hpp"
#include "se/DomainCheckCommand.hpp" #include "se/DomainCheckCommand.hpp"
#include "se/DomainCheckResponse.hpp" #include "se/DomainCheckResponse.hpp"
#include "OTE/LPECheckCommand.hpp" #include "se/LPE/LPCmdExtender.hpp"
#include "OTE/LPECheckResponse.hpp"
#include "se/TransferOp.hpp" #include "se/TransferOp.hpp"
#include "se/IntPostalInfo.hpp" #include "se/IntPostalInfo.hpp"
#include "se/ContactCreateCommand.hpp" #include "se/ContactCreateCommand.hpp"
@ -18,8 +17,6 @@
#include "se/DomainCreateResponse.hpp" #include "se/DomainCreateResponse.hpp"
#include "se/DomainTransferCommand.hpp" #include "se/DomainTransferCommand.hpp"
#include "se/DomainTransferResponse.hpp" #include "se/DomainTransferResponse.hpp"
#include "OTE/LPECreateCommand.hpp"
#include "OTE/LPECreateResponse.hpp"
using namespace std; using namespace std;
@ -150,11 +147,13 @@ void ausRegEPPTK::doOTEB()
const IntPostalInfo rrjPO(rrjName,rrjOrg, const IntPostalInfo rrjPO(rrjName,rrjOrg,
rrjCrib,rrjCity,rrjProv,rrjPC,rrjGuo); rrjCrib,rrjCity,rrjProv,rrjPC,rrjGuo);
ContactCreateCommand baCommand_0(rrj,rrjPW,&rrjPO,rrjEmail); ContactCreateCommand oteCommand_0(rrj,rrjPW,&rrjPO,rrjEmail);
ContactCreateResponse baResponse_0; ContactCreateResponse oteResponse_0;
theseLogs->logN(1,"(skip) Create Contact(s).");
if (!contactCreated) try { if (!contactCreated) try {
thisTest = Transaction(&baCommand_0, &baResponse_0); thisTest = Transaction(&oteCommand_0, &oteResponse_0);
manager->execute(thisTest); manager->execute(thisTest);
} }
catch(const std::exception e) catch(const std::exception e)
@ -166,15 +165,15 @@ void ausRegEPPTK::doOTEB()
theseLogs->logN(1,"Case %d Failed, harness catch.",cmd++); theseLogs->logN(1,"Case %d Failed, harness catch.",cmd++);
} }
theseLogs->logN(1,"Continue Basic Access OTE Transactions."); theseLogs->logN(1,"Continue OTE Transactions.");
sleep(2); sleep(2);
theseLogs->logN(1,"(%d) Conventional check of yoda.guru",cmd++); theseLogs->logN(1,"(%d) Conventional check of yoda.guru",cmd++);
DomainCheckCommand baCommand_1(name2); DomainCheckCommand oteCommand_1(name2);
DomainCheckResponse baResponse_1; DomainCheckResponse oteResponse_1;
try { try {
thisTest = Transaction(&baCommand_1, &baResponse_1); thisTest = Transaction(&oteCommand_1, &oteResponse_1);
manager->execute(thisTest); manager->execute(thisTest);
} }
catch(...) catch(...)
@ -184,11 +183,27 @@ void ausRegEPPTK::doOTEB()
theseLogs->logN(1,"(%d) LPE Check of unicycles.bike",cmd++); theseLogs->logN(1,"(%d) LPE Check of unicycles.bike",cmd++);
LPECheckCommand baCommand_2("unicycles.bike"); DomainCheckCommand oteCommand_2("unicycles.bike");
LPECheckResponse baResponse_2; LPCmdExtender oteCX; oteCX.addToCommand(oteCommand_2);
thisTest = Transaction(&baCommand_2, &baResponse_2); DomainCheckResponse oteResponse_2;
try {
thisTest = Transaction(&oteCommand_2, &oteResponse_2);
manager->execute(thisTest); manager->execute(thisTest);
}
catch (EPPException& e)
{ const char *eMsg = e.getMessage().c_str();
const char *opNow = op.c_str();
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg);
throw e;
}
catch (...)
{
theseLogs->logN(2,"General Exception OTE B (%s).",op.c_str());
}
// Used in all of below
const std::string pw("Ab9dW@rd"); const std::string pw("Ab9dW@rd");
const std::string RID("renjuan"); const std::string RID("renjuan");
@ -197,52 +212,54 @@ void ausRegEPPTK::doOTEB()
std::vector<std::string> billing(1,std::string("renjuan") ); std::vector<std::string> billing(1,std::string("renjuan") );
std::vector<std::string> ns(1,std::string("ns1.google.com") );; std::vector<std::string> ns(1,std::string("ns1.google.com") );;
// admin.push_back(std::string("Administration"));
// tech.push_back(std::string("Technical"));
// billing.push_back(std::string("Billing"));
// ns.push_back(std::string("ns1.google.com"));
try { theseLogs->logN(2,"skip: (%d) LPE create more using OTE %s.",cmd++, theseLogs->logN(2,"skip: (%d) create more domains in OTE %s.",cmd++, thisAccount);
thisAccount);
if (addDomains) { if (addDomains) {
DomainCreateCommand try {
baCommand_3(name3,pw,&RID, &tech, &ns, &admin, &billing);
DomainCreateResponse baResponse_3;
thisTest = Transaction(&baCommand_3, &baResponse_3); DomainCreateCommand
oteCommand_3(name3,pw,&RID, &tech, &ns, &admin, &billing);
DomainCreateResponse oteResponse_3;
thisTest = Transaction(&oteCommand_3, &oteResponse_3);
manager->execute(thisTest); manager->execute(thisTest);
DomainCreateCommand DomainCreateCommand
baCommand_3a(name2,pw,&RID, &tech, &ns, &admin, &billing); oteCommand_3a(name2,pw,&RID, &tech, &ns, &admin, &billing);
DomainCreateResponse baResponse_3a; DomainCreateResponse oteResponse_3a;
thisTest = Transaction(&baCommand_3a, &baResponse_3a); thisTest = Transaction(&oteCommand_3a, &oteResponse_3a);
manager->execute(thisTest); manager->execute(thisTest);
DomainCreateCommand DomainCreateCommand
baCommand_3b(name5,pw,&RID, &tech, &ns, &admin, &billing); oteCommand_3b(name5,pw,&RID, &tech, &ns, &admin, &billing);
DomainCreateResponse baResponse_3b; DomainCreateResponse oteResponse_3b;
thisTest = Transaction(&baCommand_3b, &baResponse_3b); thisTest = Transaction(&oteCommand_3b, &oteResponse_3b);
manager->execute(thisTest); manager->execute(thisTest);
DomainCreateCommand DomainCreateCommand
baCommand_3c(name4,pw,&RID, &tech, &ns, &admin, &billing); oteCommand_3c(name4,pw,&RID, &tech, &ns, &admin, &billing);
DomainCreateResponse baResponse_3c; DomainCreateResponse oteResponse_3c;
thisTest = Transaction(&baCommand_3c, &baResponse_3c); thisTest = Transaction(&oteCommand_3c, &oteResponse_3c);
manager->execute(thisTest); manager->execute(thisTest);
} }
catch (EPPException& e)
{ const char *eMsg = e.getMessage().c_str();
const char *opNow = op.c_str();
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg);
throw e;
} }
catch (...) catch (...)
{ {
theseLogs->logN(0,"Case %d Failed, harness catch.",cmd++); theseLogs->logN(2,"General Exception OTE B (%s).",op.c_str());
}
} }
theseLogs->logN(2,"%s (%d) %s -> %s.", theseLogs->logN(2,"skip %s (%d) %s -> %s.",
(transferGainer ? "Request" : "Approve"),cmd++, (transferGainer ? "Request" : "Approve"),cmd++,
name1,thatAccount); name1,thatAccount);
@ -252,12 +269,12 @@ void ausRegEPPTK::doOTEB()
transferGainer ? new TransferOp("request") : new TransferOp("approve") ; transferGainer ? new TransferOp("request") : new TransferOp("approve") ;
DomainTransferCommand DomainTransferCommand
baCommand_4(thisTransfer,name1); oteCommand_4(thisTransfer,name1);
DomainTransferResponse baResponse_4; DomainTransferResponse oteResponse_4;
try { try {
thisTest = Transaction(&baCommand_4, &baResponse_4); thisTest = Transaction(&oteCommand_4, &oteResponse_4);
manager->execute(thisTest); manager->execute(thisTest);
} }
@ -270,21 +287,23 @@ void ausRegEPPTK::doOTEB()
theseLogs->logN(1,"(%d) Sunrise create %s with ICANN SMD test files.",cmd++,name5); theseLogs->logN(1,"(%d) Sunrise create %s with ICANN SMD test files.",cmd++,name5);
LPECreateCommand baCommand_5(name5,pw,&RID, &tech, &ns, &admin, &billing); DomainCreateCommand oteCommand_5(name5,pw,&RID, &tech, &ns, &admin, &billing);
LPECreateResponse baResponse_5; LPCmdExtender oteC5X; oteC5X.addToCommand(oteCommand_5);
DomainCreateResponse oteResponse_5;
thisTest = Transaction(&baCommand_5, &baResponse_5); thisTest = Transaction(&oteCommand_5, &oteResponse_5);
manager->execute(thisTest); manager->execute(thisTest);
theseLogs->logN(1,"(%d) Create test-validate.claimsgasix (TCN).",cmd++); theseLogs->logN(1,"(%d) Create test-validate.claimsgasix (TCN).",cmd++);
LPECreateCommand baCommand_6("test-validate.claimsgasix",pw,&RID, &tech, &ns, &admin, &billing); DomainCreateCommand oteCommand_6("test-validate.claimsgasix",pw,&RID, &tech, &ns, &admin, &billing);
LPECreateResponse baResponse_6; LPCmdExtender oteC6X; oteC6X.addToCommand(oteCommand_6);
DomainCreateResponse oteResponse_6;
thisTest = Transaction(&baCommand_6, &baResponse_6); thisTest = Transaction(&oteCommand_6, &oteResponse_6);
manager->execute(thisTest); manager->execute(thisTest);
theseLogs->logN(1,"End OTE Basic Access Tests.",cmd++); theseLogs->logN(0,"End OTE Session.");
sess->close(); sess->close();
manager->shutdown(); manager->shutdown();
@ -293,12 +312,12 @@ void ausRegEPPTK::doOTEB()
catch (EPPException& e) catch (EPPException& e)
{ const char *eMsg = e.getMessage().c_str(); { const char *eMsg = e.getMessage().c_str();
const char *opNow = op.c_str(); const char *opNow = op.c_str();
theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg); theseLogs->logN(2,"Outer EPP Exception during OTE (%s): %s .",opNow,eMsg);
throw e; throw e;
} }
catch (...) catch (...)
{ {
theseLogs->logN(2,"General Exception during OTE B (%s).",op.c_str()); theseLogs->logN(2,"Outer General Exception in OTE (%s).",op.c_str());
} }
}// debug while }// debug while