Post by tao on Sept 22, 2015 3:35:01 GMT
Mostly, if you want to set up your environment for developing SAFS in your PC, you can follow the steps in Core / developer_setup.md in GitHub: github.com/SAFSDEV/Core/blob/master/developer_setup.md. There may be two more detailed things can be added here if you failed in the deployment of SAFS.
1st thing:
------------
As the Note in developer_setup.md says, you may be terminated by some issues(like slow network connection, or your PC power off) when you run your Ant script in Step 2. When you re-execute the ant script again, you may fail at something like "git.repo.clone" fail in Ant script. If you run code in Console like:
================================================
git --work-tree safsdev.core clone git://github.com/SAFSDEV/Core -b master
================================================
you may get the error message: “fatal: destination path ‘Core’ already exists and is not an empty directory.”.
This is caused by the interruption of cloning project from GitHub. When the Ant script clone project from GitHub, it may use a hidden folder, whose name is the same as the Project Name you clone, to keep Git stuff as its destination path. When you run your Ant script again, Git will inspect this existing nonempty and say the error message above. So, you just need to delete the whole hidden folder, here is Core folder, which will make your Ant script work correctly again.
2nd thing:
------------
At step 3 in developer_setup.md, it briefly says: we need to create new variable "SAFS_BUILD" in Eclipse first.
The more concrete steps in Eclipse are:
1. Right Click your Project in Package Explorer, then select the "Properties" item(or use shortcut key "Alt+Enter").
2. Click the "Java Build Path" item in the left field.
3. Click the "Libraries" in right field.
4. Choose one Jars starting from "SAFS_BUILD", and then click the "Edit" button at right.
5. Finally you can click the "Variable" button to add the SAFS_BUILD variable as the developer_setup.md says.