In Resource folder I have a folder that contains many JS files. so while building the Application can I someway edit the build so that the only files which I need at that time should build rest of the files will be ignored. Is this possible in Titanium
The only way I found out that was applying resource filter on the project. But that is the manual task.
By applying the resource filter only the selected resources will get build and rest will be ignored..
Related
I need some help to determine why my VSTS build agent doesn't create an artifact in the drop folder
I have a solution that contains a website project (not a web application) and a logic project that i'm trying to build the website via VSTS. The build complete's correctly when i reference the solution as part of the "Process" step but nothing is added to the drop folder for the release process.
I have modified my build arguments to look for a publish profile that has been saved to the app_data/PublishProfiles (called vstsbuild) on the website project. The website doesn't have a project file but it does have a website.publishproj file at the root of the website.
Any idea why it won't publish an artifact would be helpful
VSTS Publish Logs
I have created a little example app to test out the CN1 web service functionalities. Following the web service tutorial from CN1 (https://www.codenameone.com/how-do-i---access-remote-webservices-perform-operations-on-the-server.html), I have my Codename one project as client and a dynamic web project running on my Eclipse tomcat server hosting the servlet.
As I have objects that I pass back and forth between client and server, I want both projects to know about these java files. The way to do that is to put the file in one project, and modify the build path of the other to include the first project. This way, the import can resolve the file name just fine.
Question now is: is it better to put the files in one project or the other? Does either way affect the size of the resulting app file that I want to publish in a store? I want to keep the size as small as possible.
Thanks for any tips.
UPDATE: on the preliminary information provided by Shai, files that are to be shared among different projects (either client or server side), do not put your code in either but INSTEAD create a CN1 library for that. This library can then be added to the CN1 buildpath configuration (not the Java build path!) to all required projects.
Here are the details on how and why: https://www.codenameone.com/blog/new-preliminary-library-support.html
Just need to figure out how to do this on Eclipse, as it does not seem to be supported now.
You can use shared code with a cn1lib whose source you can include into the server project manually. In some cases we just copy the shared source files in the build script from one project to the other as it makes the process simpler.
I've an application with a default theme (less files defined in app/sytles and included in app.less) and reachable at my main website (for example http://www.example.com)
Now I need to build the same application for different clients. Each client has its own style customization (client.less file) and its own assets (images, fonts, ...). This site will be deployed at, for example, http://client1.example.com.
My idea was to customize the build process passing an additional flag to the ember build --environment production command and customize the build process adding the client.less file when needed.
Something like ember build --environment production --theme client1 but as far as I can see there isn't the possibility to pass extra flags to build command.
Am I missing something? There is a better way to achieve that? Any help is really appreciate, I wouldn't maintain one project for each client.
I have custom component (in tfs build workflow script) that requires tfs access (and for that reason requires tfs project uri, eg. https://tfsstuf.insomewhere.fi:8080/tfs/). Is that uri available in any of tfs build workflow properties? I have tried look through BuildAgent properties etc. but no luck so far.
Another possible solution is that there is project collection object available somewhere, because custom component creates it from that uri.
Reason for this is that i don't want hardcode that uri deep inside of build script, because it may change.
Here's how:
BuildDetail.BuildServer.TeamProjectCollection.Uri.AbsoluteUri
Read more here: TFS 2010 TfsUrl location
I've set up a number of build machines, but I always manually edited the XSL files in the web dashboard so that the build report includes a link to the created output package (typically a ZIP file).
Is there a better way (for example a plug-in) to include a link? How do you get at the finished product that CCNet exists for?
Example:
Copy the build package in a folder accessible for web browsing.
Example in ccnetlive
http://ccnetlive.thoughtworks.com/CCNet-builds/1.4.4/
The link is displayed in this page with the tag <externalLinks> :
http://ccnetlive.thoughtworks.com/ccnet/server/CCNet%20Live/project/CCNet%201.5/ViewProjectReport.aspx
Take a look at the recently-added Package Publisher.
Update: Note that with CruiseControl.Net 1.5, the packages are available through the cctray application. There is also a Package List package that can be added from the admin screen. I suspect this will show the package links as well.