You need to sign in to do that
Don't have an account?
mikef
ant tool kit error
Hi:
I am having an issue with the ant tool kit and hope you can help.
I ran the test just fine, but when I got to replace my class with the sample class I get this error.
"An object 'MyClassName' of type ApexClass was named in manifest but was not found in zipped directory"
I updated the package.xml file with my class name, I can login just fine, and the test worked fine.
Thank you.
I am having an issue with the ant tool kit and hope you can help.
I ran the test just fine, but when I got to replace my class with the sample class I get this error.
"An object 'MyClassName' of type ApexClass was named in manifest but was not found in zipped directory"
I updated the package.xml file with my class name, I can login just fine, and the test worked fine.
Thank you.
build.xml
dev.directory = June2008
and the classes directory is in the June2008 directory.
The package.xml is in June2008 as well.
The build.xml and build.properties files are in the parent of the June2008 directory.
I am just trying to run the deployCodeCheckOnly first.
Message Edited by mikef on 05-27-2008 04:27 PM
Entity of type 'ApexClass' named 'ClientTripController' not foundpackage.xml - Entity of type 'ApexClass' named 'RecreateMeetingsController' not foundpackage.xml - Entity of type 'ApexClass' named 'ItineraryDay' not foundpackage.xml - Entity of type 'ApexClass' named 'DayTitle' not foundpackage.xml - Entity of type 'ApexClass' named 'ItineraryPrintController' not foundpackage.xml - Entity of type 'ApexClass' named 'FormattedCompany' not foundpackage.xml - Entity of type 'ApexClass' named 'ItineraryComponents' not foundpackage.xml - Entity of type 'ApexClass' named 'tripCompanySummaryController' not foundpackage.xml - Entity of type 'ApexClass' named 'ICComponentController' not foundpackage.xml - Entity of type 'ApexClass' named 'FunctionalTests' not foundpackage.xml - Unknown entity:ApexComponentspackage.xml - Entity of type 'ApexPage' named 'RecreateMeetingsPage' not foundpackage.xml - Entity of type 'ApexPage' named 'ItineraryPrint' not foundpackage.xml - Entity of type 'ApexPage' named 'tripCompanySummary' not foundpackage.xml - Unknown entity:ApexTriggerspackage.xml - Unknown entity:CustomFieldspackage.xml - Unknown entity:CustomObjectspackage.xml - Unknown entity:Layoutspackage.xml - Unknown entity:Profilespackage.xml - Unknown entity:Scontrols
BUILD FAILED
/Documents/workspace/Bug Fixing/Builds/build.xml:131: The following error occurred while executing this line:
/Documents/workspace/Bug Fixing/Builds/build.xml:62: Failures:
package.xml(ClientTripController):An object 'ClientTripController' of type ApexClass was named in manifest but was not found in zipped directory
package.xml(DayTitle):An object 'DayTitle' of type ApexClass was named in manifest but was not found in zipped directory
package.xml(FormattedCompany):An object 'FormattedCompany' of type ApexClass was named in manifest but was not found in zipped directory
package.xml(FunctionalTests):An object 'FunctionalTests' of type ApexClass was named in manifest but was not found in zipped directory
package.xml(ICComponentController):An object 'ICCom
I am using Apache Ant version 1.7.0 compiled on February 29 2008, can anyone advice what might be causing this errors.
Code for retrieveCode task
Code for deployCode task
As all the objects would have got downloaded into the package folder, the above change in package.xml(with *) will pick all available objects and deploy them.
"Error: An object 'CustomObject' of type CustomObject was named in package.xml, but was not found in zipped directory".
I tried the suggestion of Manoj, but then I get an error that the deploy tries to create the object:
"objects/CustomObject/CustomObject.object-meta.xml -- Error: Cannot create a new component with the namespace: CustomObject. Only components in the same namespace as the organization can be created through the API".
I am using Jenkins with Ant to do deployments to our test sandbox.