Xcode 4 project template adds extra folder - xcode4

When I make a new project with xc4 I don't want it to create a folder with the same name as the project. I want the source files associated with a project template to get copied into several other folders that sit next to the project.
In the TemplateInfo.plist, I can specify which files to copy through the Definitions and Nodes arrays. In the Definitions, if I make the name ../Example.cpp then it will copy the file into the directory with the project rather than into the folder that has the project's name, which is what I want. But, if i delete that empty folder then xcode can no longer find any files because all files had to be specified relative to the auto-created folder.
Does anyone know how to get around this? Is there some way to specify which folder project files should be relative to? Or perhaps some other way to specify relative paths for files in a project template?

Related

Where to put the live-search-docs config file in all in one alfresco project?

I have been going through some blog posts that tell how to customize the live search . What is not clear to me is where should I place the live-search-docs.get.config.xml file in my all-in-one-share project so that it is bootstrapped and deployed in the correct location.
Please can some one advise where the file should be placed in my all-in-one alfresco project?
From the link below
https://www.bluefishgroup.com/insights/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-alfresco-5/
they suggest the search query customization file to be placed under
These files can now be modified to add additional metadata fields as
needed. Once the files have been updated, they should be deployed to
the ‘extensions’ directory so that they will override the out of the
box configuration. If you are deploying your code as a custom AMP
file, the files should target the following directory:
tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search
if my file needs to end up in the above path in my WAR, where exactly should I place the search file in my all-in-one alfresco project so that its deployed to the above folder? I would like this to be bootstrapped with my all in one project. I tried putting the file under src/main/resources/alfresco/site-webscripts with the remaining path for the file but that did not work.
Thanks
The easiest way is to create a copy of that file in:
my-all-in-one-project-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/
where, of course, my-all-in-one-project-platform-jar must be substituted with the name that you have specified when the project was created with the all-in-one archetype.
The file in the extension subpath will override the corresponding OOTB files.
See Web scripts

QT Creator Disable displaying file path in file browser

I move source and header files in include and src dirrectories. Then i define this dirrectories in VPATH and include files without specifying any directory.
After all of this, I want to see files in the File Browser panel as included directly (without any path), but I see relative paths anyway!
Is there some way to disable relative paths in File Browser panel?
P. S. I doesn't like "Simplify Tree" option, coz it place all headers and sources in one folder. This is uncomfortabel.
The screenshots are all taken from "Projects" view, not from file view. The project view is meant to visualize the build system. Your build system has the files stored in a subfolder, so Creator will display that. Since the Projects view is used to add files into the project this is important: Which folder should a new file go into if that folder was not displayed?
It does not matter how you write the filenames into your .pro-file: Creator will get a list of absolute paths for all your sources -- as long as qmake/make can build your project that is:-)

Copy a project from one directory to another directory - YII2 basic

I have created one project in yii2-basic. In that I had done the some changes in the bootstrap.css in the web/assets/dir/.
Now I need to deploy this into another directory. I copied that project into another directory. Then I run in the browser. The changes I had done in the files are not affecting to the site. Then it refers to the another file for css.
I can't find the correct way to do this. Can anyone show me the correct way to do this?
for changing the css you should change the original in the
.\basic\vendor\bower\bootstrap\dist\css
then minimize it
and then in the dir web\asset you must delete the dir where is place the bootstrap (bootstrap-min.css i guess) files
There isn't a fixed name for this asset dir, you must find yourself the correspondent dir containing all the bootstrap part (css, js , fonts). and then remove (cancel) this dir.
Removing this dir when you accessing to the app the dir is newly recreate (normally with another asset id name).
If you don't do this when you copy a project in a new dir, at the first access the asset directory are newly create and the code you have change is not reached by application.

Xcode static library appears twice

I added the OCMock static library in Xcode with some header files.
I'm not sure what's changed since I added it but the file now appears twice in the Project Navigator - once at the top level and once under the usr/lib folders.
How do I get rid of the second (highlighted) listing?
It looks like you added OCMock's whole "usr" folder via a folder reference, most likely by accident.
You have three choices for a solution:
1)
Remove the "usr" folder from your list of files & folders in your project, and re-add just the "include" folder via folder reference (I'm presuming you want to use the folder reference so you can pick up the latest header files that are in there?).
2)
Add the required header files to your project directly (i.e. not using the folder reference).
3)
Or get rid of the first "libOCMock.a" library and just rely on the folder reference to pick up the static library living under the "usr" hierarchy.

Reading in existing file in Flex 4.6

Alright, I'm really new to flex. I have a data file on my computer that I need my flex mobile app to read from. Is it possible to put this file in a certain location on my computer so that the app will see it when I'm testing(ex-can i put it in a folder that is linked to the applicationstoragedirectory directory)? Thanks
You can just drop it in the source folder, it will automatically be copied into the bin-debug folder (there are a few choice exceptions that you can find in the window->preferences->Flash Builder->File Exclusions) Everything that is copied into the bin-debug would also be packaged into an air or airi file and ultimately deployed next to the bytecode/executable just like it is in the bin-debug in the builder.
You can also make another folder, say "resources" then in the project properties in the flex build path go to source path tab and click add folder button and type "resources". Then it will treat that and the src folder the same.

Resources