function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TraceyTracey 

Deployment of Trigger without Package

I want to deploy a single Apex Trigger with using the Package menthod. The package method forces one to select all the triggers that one is using.

 

Is it possible just to deploy the one trigger (and testmethod) without using packages. Can this be done in Ecilpse?

 

 

Thanks

 

Stephen

Best Answer chosen by Admin (Salesforce Developers) 
hisrinuhisrinu
You can do it using Eclipse or Ant Tool.

All Answers

hisrinuhisrinu
You can do it using Eclipse or Ant Tool.
This was selected as the best answer
TraceyTracey

Hi Srini

 

I tried Eclipse but it does not appear to allow me to select the Deploy option as described here (See below)


http://wiki.developerforce.com/index.php/An_Introduction_to_Force_IDE

Once you have created your application components and unit tested them in your own development organization, you may want to migrate them to a different organization for such purposes as testing, staging, publication, or production use by end users. For example, you will often find yourself coding and synchronizing with a Development Environment organization. If you’re happy with those changes, you will want to deploy the changes to a sandbox for testing against a copy of your production data. The Force.com IDE facilitates this deployment, and it is highly configurable. To deploy a project, or a subset of a project, to an organization, right click on the component or folder and select Force.com > Deploy to Server. You will then be prompted for connection details to the destination organization. Once you have entered these, you can select the metadata components to upload. For example, you may select just a trigger and the test class that accompanies it. Once you’ve determined what to deploy, you can either validate the deployment—fully executing the deploy process on the server, including running tests, without actually committing the changes—or execute the deployment so your changes are saved. If the deployment fails for any reason, you will be presented with a list of each error or test failure so you know what to fix.

 

JonPJonP
What versions of the Force.com IDE, Eclipse, Java, and OS are you using?
TraceyTracey

Eclipse Version 3.3.2

Force.com IDE  13.0.0.20080613

JonPJonP

You are using a very old version of the Force.com IDE.  If I recall correctly, in the Summer '08 (v13) IDE, the right-click > Force.com > Deploy to Server command is only available on the "src" folder.

 

You should be aware that your version of the Force.com IDE is an unsupported Developer Preview release.  There have been significant enhancements and changes in the last year, and I strongly recommend you migrate to the latest release, the Force.com IDE for Summer '09.

 

There is no direct upgrade path from the Developer Preview releases to supported releases, so you will have to uninstall the IDE from Eclipse and then install the latest from the update site at http://www.adnsandbox.com/tools/ide/install/ (link).  Since the Summer '09 IDE release supports Eclipse 3.4, this may be a good opportunity to upgrade Eclipse as well.

 

Jon

salesforce.com Product Manager