Hybris extension .project file - sap-commerce-cloud

I have taken custom hybris extension folder from git and it does not contains any .project file. Will eclipse autogenerate this file while import or I need to make a new one?

See this answer: https://stackoverflow.com/a/53880050/90513
If the Git project / repository is what your team is using, it's probably better to ask your team mate to push the .project file.

Related

How to setup Hybris Eclipse for Development? when importing from a GIT

My source code for Hybris (custom extensions) are in a GIT Repository but my Hybris platform binaries are in another folder. (I am a newbie to hybris)
How to set my build path in this case?
Say if my custom extension folders are under (TFS Git Repository)
C:\HybrisCommerce
Whereas my Platform binaries
C:\HybrisBinary\Bin\Platform
C:\HybrisBinary\Config
C:\HybrisBinary\data\
C:\HybrisBinary\log\
How to configure Build Path in such a case?
You can create a Windows symlink to link your custom extensions folder to your hybris project folder.
Here is an example. I am not sure if it will work exactly for your system so you may have to modify it.
mklink /J "C:\HybrisCommerce" "C:\HybrisBinary\Bin\custom"
This way, the default hybris build will search for its extension in bin/custom, which will actually point to you git repository.
For eclipse, you can just add all the projects into the workspace. General > Existing Project into Workspace First all project from you hybris folder and after that all your custom projects from the git repository folder. Important! Keep in mind, that eclipse will change the .project file of your custom extensions. Don't commit this file to git repository, because you might break the other team members projects.
Good luck!
You can simply create symbolic link as suggested by #Hristo Staykov
Or
Modify localextenstion.xml as below, to target all your custom extenstions (Taken from GIT/SVN) by giving full path (dir).
e.g. <extension dir='C:\HybrisCommerce\custmocore' />
Then configure your Eclipse for hybris e-commerce using these steps
Go to your Local Hybris setup,reach this location:
[LOCAL_Path]\hybris\config\
Open the localextensions.xml,you will see something like this in the file:
<path dir='[PUT_YOUR_CUSTOM_LOCATION_PATH HERE]' autoload='false' />
Then add all the extension name(that needs to be included from custom/default here) right below it:
<extension name='abc' />
<extension name='xyz' />
<extension name='efg' />
Save it and Run ant clean all.

CVS add error for adding a new file

I'm trying to use CVS on my linux machine for the first time for a project, and I keep hitting my head against the same brick wall.
I have created a projects directory as /home/myuser/cvsproject
I then set the environment variable for CVS as:
export CVSROOT=/home/myuser/cvsproject
I then ran the initialize for CVS as: cvs init
This created the CVSROOT folder under my projects directory.
I then created a lower level project directory, as /home/myuser/cvsproject/project1
I added these project details in the modules file at the end as
project1 project1
I am now trying to add a new file to the repository with cvs add project1/filename.txt but I get the following error:
cvs add: in directory project1:
cvs [add aborted]: there is no version here; do 'cvs checkout' first
The file is in my current directory, located in /home/myuser/cvsproject/
If I try to add the file without the project1 prefix: cvs add filename.txt I get the same error still.
I am able to check out a file in the CVSROOT directory, i.e.
cvs checkout CVSROOT/modules so CVS is definitely working.
I appreciate any help. Thanks
CVS is not decentralised, you shouldn't make your project directory the root of CVS repository. Set CVSROOT to different place where your repository will reside (that is not the same place as your project's working directory - it should be some place new, where CVS will create its structure), then add or import everything you need (don't forget to commit). If you want another working copy, you should checkout from the same CVSROOT.

phonegap Blackberry webworks plugin

I am trying to create a BlackBerry Webworks plugin using Phone gap. I am trying to follow the instructions given in this link:
http://wiki.phonegap.com/w/page/35799737/How%20To%20Create%20a%20PhoneGap%20Plugin%20for%20BlackBerry%20WebWorks
however, the directory structure mentioned in the link and mine vary significantly, also there is no build.xml in the root directory to run the
ant create-plugin command,
Since Phonegap being converted to Cordova Project, has something changed in the process to be followed?
Thanks in advance.
Currently the way plugin is added is different:
Add customplugin.js to your project's www folder and include a reference to it in your html file after cordova.js.
Add the plugin source to your cordova.jar in your projects ext folder. Open cordova.jar with your favorite archive manager or use the jar to copy the CustomPlugin.java file into org/apache/cordova/plugins directory.
In your projects plugins.xml file add the following line:
ref:
https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/ChildBrowser

how to add files in svnserver using linux

I am creating a svnrepository using svnadmin create svndump
In the svnsump I am creating a folder with the name trunk and importing some of my existing files.
svn import /home/somefiles/ file:///home/svndump/trunk/
But when i see trunk folder it does'nt contains any folder which are imported from somefiles folder.
but when i looked the files using svn log file:///home/svnadump/trunk/ i can see the files .
it seems files are copying but they are not adding to the repository..
how to add files to repository???
Please help me..
Thanks in Advance.
You should be using svn ls to view the contents of repository.
For adding files to repository once you have imported, the standard way is to checkout a copy, add some files using 'svn add' and them commit them to the repository.

subversion/ tortoisesvn- changing the directory of a repository

I have a project in a directory projects/projectA. it has a corresponding subversion repository. I'm using Tortoisesvn as the front end.
I'm trying to move the project to projects/projectA_old and cannot find a way to do it. looks like renaming from tortoise works only on directories inside the project and not the project directory itself.
Thanks
Just rename the directory from the operating system - its name is not significant to SVN.

Resources