How do I parameterize flyway.properties to reference the user's home directory? - flyway

I'm trying to check into vcs a flyway.properties file that will work on all of the developers' machines. I need to parameterize flyway.properties, and can't figure out how. Maybe it isn't supported; please let me know.
Here are two properties I'm trying to set. You can see I'm using the Java user.home system property in an attempt to reference the user's home directory.
flyway.locations=filesystem:${user.home}/workspace/project-clone/sql
flyway.jarDir=${user.home}/.m2/repository/org/postgresql/postgresql/9.3-1101-jdbc41
Flyway seems to want sql and jars in its install directory, but that's not project specific, and I want my colleagues to like the tool, so please help me figure out how to make it one-liner easy.

This is currently isn't supported directly. You can however use symlinks to achieve this. If this doesn't satisfy your needs, please file a feature request in the issue tracker.

Related

Can I remove/disable all Share functionality by removing share.war file?

In my new project we are going to use Alfresco as back-end and Angular as front-end, so we wish to remove/disable Share completely if possible. I read somewhat in internet and some people just removed share.war file. Is this safe? Is it the correct way for doing this? Will any errors appear in the future because of this?
Yes, you can just remove it. You will of course, not have the fancy front end. But if you are just using it for back end stuff it will be fine. There are no dependencies, and you should get no errors.
Yes, definitely you can remove share.war as it is completely separate from alfresco.war. It won't give you any error. refer this
As said above, yes you can live with only alfresco war installed. Were I work we don't use share, we only use the repo via its api.
But keep in mind that if you have a recent version of alfresco, you don't have access to the repo UI any-more and share UI give you access to lot of repo config you can change without restart. I would keep share, disable all of its service (properties in alfresco-global that enable services for share; like the thumb preview generation, swf transformers, activity feed etc...) and keep it safe private to your admins.

Visual Studio 2010: Why I can't change the Full Path of website?

I currently have a solution which recently added a new website to the TFS source control. Due to a mistake during creation, the website physical directory is like below:
Z:\Projects\NewWebSite\NewWebSite
Instead, it should be like below:
Z:\Projects\NewWebSite\
The problem I had was when trying to remove and add the website with the new physical path into the solution. Every time I do so, for some reason it will automatically refers to the first path. If I tried to remove the folder, it will give me an error saying it can't open the path since the folder no longer exists.
My solution is to basically unbind everything and create a new solution from scratch, then re-adding the website to the solution. My worry is that I am just working around the problem, and that it is still present somewhere in TFS, waiting to mess up someone else's solution when they check out.
So, does anyone knows what is causing this, and what is the best way to fix this sort of behavior?
If your solution name is the same as your project name then that is the default structure. When making a new project, start by creating the solution with a unique name and then adding your project to that.
No matter what, you do actually want that structure. Its like that for the purpose of expandability. If you need to add additional projects or maybe separate your operations into different projects (like Data vs Web for instance), the Solution/Project folder setup will accommodate.
In other words, don't fight it. Just make your solution name unique from your Web application name to make it less ugly looking.
TFS doesn't deal with physical locations at all. This is handled by your TFS client, when you map a workspace a physical path. This is not something that TFS deals with.
As such, i'm confused by your comments.

I need a sensible and simple Plone project directory structure

I've been asked to build a website with Plone. I would also like to use git version control for this project. Ideally, I would have all the work I do stored in one directory -- my project directory -- which will also make version control simple. Can anyone point me to a resource that explains how to do this?
We keep our company project skeleton at https://github.com/niteoweb/niteoweb.skel.plone.
It has some of our internal specifics, but should be usable. At least as a point of reference.

PHPStorm - Link external SFTP-folders into project

the issue i am fighting through is a bit complicated. Ill explain the setup envoironment to you first.
I am using PHPStorm to work on a Symony2 Project.
My Apache is hosted on a Debian-VM connected to PHPStorm via "Deployment Tool".
/* So far: I can edit code and update the server automaticaly on save. Works*/
My problem now is, that i am using the composer, which is ment do get me the right bundles into the vendor folder.
I WANT to create kind of a symlink from the server directly into the project.
I DONT WANT to download the vendor folder from the server hard into the project.
COMPACT:
I want to create a symbolic link within a PHPStorm project. Linking a folder from a server into the Project. The linked in folder should be unidirectional updated on source change. The Classes and Namespaces should be known to the Project.
Is there any native way to get this done?
Or does anyone know a plugin which could handle such affairs?
I hope i expressed my point clearly :/ Please ask, if anything is unclear.
Greetings and thanks upfront.
It's not possible to do directly from PhpStorm, see the related issue. You can use some third-party tool like ExpanDrive to map a server directory to the drive letter by SFTP and then add this local directory as a content root to your PhpStorm project. Note that it may affect the performance dramatically.

Include another MSI file in my setup project

I'm trying to make a setup program for an ASP.NET web site. I need to make sure the target machine has sqlxml installed.
I must verify the target machine has the software installed, and if not, launch a .msi file either before or after the main installation.
I'm a complete newbie with setup projects, so maybe this is obvious, but after several hours browsing the web I haven't found a satisfactory solution. I've been reading about WiX, etc. but I'm looking (if possible) for a simple solution.
Thank you both!
I understand an installer can't run another one. I was thinking in a functionality similar to Prerequisites (in project properties). There I can check a component and it will be automatically installed if it isn't. I don't need to do anything else. But, the most important thing for me is that the installation won't run if it's not needed.
I also tried the .msm solution, but I couldn't find any. Maybe I can make one myself? I haven't tried it yet though.
Unfortunately, you can't run one installer from another, since only one can be running at a time. You need to chain them together and run one after the other. Google "msi chaining". This is often the reason why products like Visual Studio use an external setup.exe which then runs the installers one after the other.
Looks like you need to 'chain' the installs http://objectmix.com/xml-soap/84668-installing-sqlxml-net-app.html
You can get the redist here http://www.microsoft.com/downloads/details.aspx?FamilyID=51D4A154-8E23-47D2-A033-764259CFB53B&displaylang=en
CAn you add this as a pre-req for your install?
What are you using to build the create the install?
Edit:
I had a look to see how you can check of the SQLXML is installed and come across this:
http://www.tech-archive.net/Archive/SQL-Server/microsoft.public.sqlserver.xml/2005-04/msg00110.html
The system I am on just now has the following key HKEY_CLASSES_ROOT \ SQLXMLX (note the X at the end), so you might need to do a bit more investigation in to what the actual key is.
I'm not familer with Visual Studio install authoring but if you can add an entry to the AppSearch and RegLocator tables you should be able to check for the existance of the registry key when the install starts. See here
http://msdn.microsoft.com/en-us/library/aa371564(VS.85).aspx
The Reglocator table gives you the option to set a property with a value from the registry if found. You can then use this in the condition on a custom action.
A lot to put together, but I hope it move you in the right direction.
Brent's answer is correct. I would just add that, sometimes, you can find a "merge module" for the bits you depend on. That's a .msm file. You can certainly include 1 or more of those in your .msi file. I have no idea whether a merge module is available for SQLXML. Sorry.

Resources