In short:
How can I build and deploy using TeamCity multiple versions of jQuery?
Long way:
existing info:
Two files from jQuery (jquery-2.1.1.js and jquery-2.1.3.js) are checked into the source control (TFS) in absolutely same 100% way (Build Action -> "Context"). In parallel, in the same directory, all identical.
Local Build and deploy using MSStudio 12 works without any issues copying at the end of the build both files into Scripts directory
when it runs from TeamCity, it fails to find the relevant "meant to be copied" files and comes back with the following error:
"C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge.targets(608,
5): Copying file Scripts\jquery-2.1.3.js to
obj\Debug\AspnetCompileMerge\Source\Scripts\jquery-2.1.3.js failed.
Could not find file 'Scripts\jquery-2.1.3.js'"
Would someone help me to understand what is going on?
Related
I have a .NET Core 6 MVC application, with all JavaScript files stored in the wwwroot/js folder. When I publish the project for deployment, one of the javascript files is excluded -- it does not appear in the publish location -- and I don't understand why.
If it matters, the file is named "CustomerService.js"; I haven't tried publishing with a different file name at the time of this writing, though I doubt that's causing the issue.
I have made no changes to the .git configuration or other settings, and I have updated VS to version 17.3.6, the current version as of this writing.
Can anyone explain why this could be happening?
Would like to try this Rhino Debugger however having problems
I downloaded latest from here according to doc it says just simply run:
java org.mozilla.javascript.tools.debugger.Main [options] [filename.js] [script-arguments]
however..it's source code, so I probably need to build it first...(unless there are precompiled download out there?). Assuming I need to build it to get the jar file for debugger, I assume just build the build.gradle file at the root dir. Or run gradle tasks build ? When I do that I get error:
Execution failed for task ':checkstyleMain'.Unable to create a Checker: configLocation {C:\rhino\rhino-1.7.8\checkstyle.xml}, classpath {C:\rhino\rhino-1.7.8\buil
dGradle\classes\java\main;C:\rhino\rhino-1.7.8\buildGradle\resources\main}.
So..I'm a bit lost. Been ten years since I've worked with Java, but hopefully I'm missing something simple.
Any experienced Rhino JavaScript devs out there that can point me in the right direction? Should I just stick with using Eclipse? (Had that working, but I'm still curious about this debugger)
Download the latest rhino from the link you provided, at this time it is "rhino-1.7.8.zip". Unzip that and change directory to "rhino1.7.8/lib"; you need the "rhino-1.7.8.jar" in your CLASSPATH. Assuming you are in "rhino1.7.8/lib" that should be in your current folder, and you can then do
java -cp rhino-1.7.8.jar org.mozilla.javascript.tools.debugger.Main
Which should render like
I've been pulling my hair lately. I have a Yeoman generated JekyllRB grunt/bower setup. The build works correct on my Windows machine but not on an automated Linux build machine.
With correct, I mean that I get a minified/uglified/revv-ed version of JQuery in
dist/js/50b6.app.js
On the continuous integration build setup, which runs Linux, I get an empty js file:
dist/js/d41d.app.js
I updated Grunt and all plugins to the latest version, without success. Analyzed my full Gruntfile.js, verified the src and dest of all the plugins and all seems the same, taking into account the difference in platform specific path separators.
Here is the link to the sources of my Jekyll site: site-ringo
Eventually, I was able to resolve this myself. I hadn't updated my local Bower components for a while. On my build server, I ended up with another version of JQuery than on my local machine. The newer JQuery was packaged differently leading to the jquery.js file being in another location. As such, the concat+uglify+rev build chain didn't pick up the correct file leading to the output file being empty.
When running Eclipse Kepler and importing an existing Maven project, Eclipse hangs during "Building Workspace (XX%)". Switching to the Progress tab reveals a "Validating nnn"; it looks like it’s validating a directory containing JavaScript files.
Kill Eclipse process.
Go to project folder and edit .project file.
Remove the following lines (it will disable failing JavaScript validator):
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
Save file.
Re-open Eclipse.
I faced the same problem when I tried to install Angular.js with bower in my project. I seems bower has lots of javascript files it downloaded automatically which caused my IDE to stuck in validation process for a long time. So, I solved this problem this way,
I first installed tern.js 0.9.0.
Then I went to the project properties, selected tern script path
included only the path I needed for validation, My project's
javascript folder. I excluded other path like placeholders,
Angular.js files, Jquery files.
I selected the Javascript from the properties again and did the same
things in include path's source.
My IDE currently working without freezing. I took help from there. Tern
I guess it can be helpful, where any IDE stuck due to lots of Javascript file.
Is there a way to load JavaScript files from jars when running tests with js-test-driver? I'd like to find a solution that works both from command line and from Eclipse.
The reason I want to solve this is that I'm trying to do a gradle build and store artifacts on a repository. The artifacts (jars) contain Java as well as JavaScript files, and when running the JavaScript unit tests with js-test-driver, I have dependencies to JavaScript files inside the jars.
One solution is to unpack the jars and run js-test-driver normally. Is there a better solution without the unpacking?