Eclipse project into mercurial - java

I'm sorry about this question but I'm very new in mercurial, I have an android project in eclipse already created and working and a web repository at bitbucket.org, I created a repository but I can't share the project into that repository. It must be something fool what I'm doing, but I don't know what is it. Please any help is very welcome
Greetings

You don't give much information on what exactly the problem is. You need to do following steps:
Right click on the project, choose Team > Share Project and then select Mercurial and click Next.
The dialog will offer to create a repository in the project location. Click Finish to do that.
Again right click on the project and choose Team > Commit. Enter a commit message and check that all files you want to include are checked in the list. Click OK.
One more time right click on the project and choose Team > Push.
The the dialog enter the URL of your Bitbucket repository and the login. Click Finish.
Now your code should be in the Bitbucket repository.
To send more changes to Bitbucket, you repeat steps 3, 4 and 5.
If you have a problem, you'll need to exactly explain which step isn't working and what exactly is wrong.

Related

in Eclipse, Commit option is not visible

In Eclipse, am not able to see the option called Commit in Team. Please help is there any settings to get that option. Please do let me know.
You need to have the project Open. Open first, then right click for Team and Commit.
Then when you right click on the Repository in Git Repository view or the Project in Package Explorer view, you will see the option in Team.
If you have not connected to the remote repository or have no repositories locally, then I think you also have the same problem. Connect to or select a repository.
Your project is open, so you may be offline at the point you took the image or perhaps the repository is not connected.
In the Window menu tab, select Show View and then select Other and then Git.
I think you need to install git integration plugin from marketplace and then set up your git account

How can I import an project in nwds web dynpro from netweaver

I have to complete the work of a colleague who is ill. My problem is I cannot talk to him and cannot work with hies files or his computer.
I can see the Project in the component browser of the PO. I have imported some files in my workspace but I cannot work with them in the WebDynpro explorer.
Does somebody know what to do to?
Have I imported the files wrong or is there any additional step I have missed?
Navigate to Development Infrastructure, find your project, right click on it and choose 'Create Project', later on ask your collegue to check-in all of his changes and sync the project in Development Infrastructure on 'Open Activites' tab.
Make sure you are not working on the same component simultaneously as version controll will give you a very hard time and it is most likely that one of you will loose the changes.

How to set up the JavaEE First Cup tutorial in eclipse?

I'm going through the tutorial (https://docs.oracle.com/javaee/7/firstcup/creating-example002.htm). I have Eclipse for EE developers (4.6.3) with Glassfish (4.x) properly configured in it.
I see the project folder under glassfish4\docs\firstcup but I don't know how to import it since the instructions are for Netbeans. If I try to "Open projects from file system" or a general import I get just the folder structure in the workspace and not with the right "flavor":
Then Glassfish doesn't recognize this as a resource that can be added. How do I do this in Eclipse?
I was stuck with the same problem.
Here are the steps I took to make it work.
Skip the step where you have to open the firstcup project and build.
When you have to create the dukes-age project and the firstcup-war project, go to File > New > Maven Project.
Make sure the "Create a simple project (skip archetype selection)" option is unchecked. Click Next.
On the next page, you have to select an archetype. Choose "All Catalogs" and type glassfish in Filter and you will see the 2 archetypes you need for the tutorial.
On the next page, you need to enter Group Id and Artifact Id. For the dukes-age project, type firstcup.dukesage.resource in Group Id and dukes-age for Artifact Id. Click Finish.
You will notice that there's an error in your pom.xml file. Open it and edit by removing -SNAPSHOT from the line <version>8.0-SNAPSHOT</version>. Save.
Right click the project in Project Explorer (the left pane). Go to Maven > Update Project.
Skip the step to set the default URL for dukes-age. Instead, when you want to test your completed web service, go to http://localhost:8080/dukes-age/webapi/dukesAge/.
Note for the firstcup-war project. Before adding the project to the server, make sure you start Derby by running ./asadmin start-database inside glassfish5/bin. Otherwise, you have to remove the project from the server and add it back.
That's all. Other than that, everything is quite similar to the steps in the tutorial. Feel free to ask.

How to stop Eclipse / Scala IDE from uploading all my projects at once?

[EDIT]: I dont have a git console installed and therefore only use the git-plugin for eclipse.
I have several projects in my Eclipse / Scala IDE like this:
project 1
project 2
project 3
...
It can happen that I work on i.e. project 1 and do some changes. After that I work on project 2 and also create changes. BUT project 2 is still faulty, as I have not finished changing all the code and want to go to bed or something like this.
Now I click on project 1 -> team -> commit ... and down in the file-window everything I have done pops up (project 1 - which I want to upload, and project 2 - which is faulty and which I dont want to upload).
I am aware that there is a filter, where you can type in text and by this only upload the stuff from project 1, but I have to type everytime. What if I forget to use the filter? I upload faulty code!
Also the filter is very primitive, as I cant even save templates to later just click on, I have to type the correct(!) filter-text everytime I want to commit.
So is there a way to only like click on a project and just upload that? Or keep other projects from being uploaded until they are ready?
It is good practice to select which files you wanted to commit.
you can do this using command line using git add <file-name> then do git commit. I think eclipse also provides some kind of window for selecting files before commit.

Error while configuring local repository in Git in Eclipse

This may sound too amateur but as a whole i want to configure my Git repository and move my code from eclipse to Github.
So i checked out a couple of video tutorials and applied the steps but none of them seems to work in my case. This is what i did.
1) Right click on the project > Team > Share Project > Select Git > and then this window comes
now when i try to create my repository by clicking on create button> fill the parent directory and the name and click finish. Nothing really happens and i am redirected to the same previous window, without the repository column loaded.
Can anyone help me out of this.
First i thought it to be a Eclipse version issue, earlier i tried on Luna, also after installing Juno its the same issue.
Help me with this. Thanks in advance.

Categories

Resources