While moving code from developer org to packaging org using ANT in few places of the apex code we need to prefix the packaging namespace. Is there any way to automate this process?
For instance:
RecordType Test = [
SELECT Id, Name
FROM RecordType
WHERE SobjectType = 'abc__books__c'
AND DeveloperName = 'bookreview'
];
In the above code abc is the namespace which is added manually.