Questions tagged [cargo]

Cargo is a thin wrapper that allows you to manipulate Java EE containers in a standard way. It is often used to start containers for integration and functional tests, especially with Maven or Ant. DO NOT use this for the Rust-related tool; use "rust-cargo" instead.

Cargo is a thin wrapper that allows you to manipulate Java EE containers in a standard way. It is often used to start containers for integration and functional tests, especially with Maven (Cargo - Maven) or Ant (Cargo - Ant). Another use case is to create configurations and doing the deployments for the application.

Cargo provides the following Tools and APIs:

  • A Java API to start/stop/configure Java Containers and deploy modules into them.
  • A Java API to parse/create/merge Java EE Modules
  • Ant tasks and Maven 2/Maven 3 plugins.
319 questions
0
votes
1 answer

Implementing a mobile only screen on a website that prompts the user to reopen the link from a desktop device

I have been creating a website using Cargo Collective (CSS) and need to publish my website before I will have had time to optimise it for mobile use. I am looking to add a prompt that will appear when the site is visit from a mobile device. This…
Finn Hull
  • 41
  • 2
0
votes
1 answer

Is it possible to have a private module named `lib` if I specify a separate lib target in Cargo.toml?

I have a binary application I'm developing in Rust with a lib directory of helpers, and I want to know how to export helper functions for integration testing—e.g. src |- data_access_layer.rs |- main.rs |- lib |- util.rs When I tried to export…
tcmoore
  • 1,129
  • 1
  • 12
  • 29
0
votes
0 answers

Thumbnail slideshow for Cargo template?

Would anyone know how to turn the thumbnail of my cargo portfolio into a slideshow that changes the gif/image once a user moves on to the next page? I'm not sure how to do this
0
votes
0 answers

Form Boxes and buttons disappear on mobile for cargo collective site

I am helping a client add a form to a cargo collective site. The form is to collect emails for a subscription list. For desktop I added to the footer, but on mobile it needs to be added to each page individually due to how cargo developer sites…
0
votes
2 answers

Check for obsolete clippy allowances

Sometimes you want to suppress a clippy warning for the time being and you let clippy ignore a specific rule for a specific code block by adding lines like the following: #[allow(dead_code)] But as the project continues, it can actually happen that…
Dalit Sairio
  • 125
  • 3
0
votes
0 answers

How to disable mobile version of website? (Cargo Collective site)

I have a website and the layout is completely messed up for mobile devices. Is it possible to set my cargo site to always load like the desktop version when someone visits it from a mobile device?
Pat B
  • 1
0
votes
0 answers

'--target=armv7-linux-androideabi' which wasn't expected, or isn't valid in this context

I'm trying to add a rust-implemented Android native library to my Flutter package (plugin), this Android module has only one build.gradle file which is in the projectRoot directory. Add the rust-android-gradle to the build.gradle file buildscript { …
user13951375
0
votes
0 answers

Can't install most cargo crates bc pkg-config isn't installed (Windows 10)

I cannot install a lot of rust crates due to this error: Can't probe using: pkg_config, continuing with other methods because: Could not run `"pkg-config" "--libs" "--cflags" "opencv4"` The pkg-config command could not be found. Most likely,…
0
votes
1 answer

Cargo build for Linux compilation errors from Once_cell?

I have a cargo workspace project which I build and run on my Windows laptop. The program hosts a backend server. Now, I would like to host this on an AWS EC2 instance which is a Linux machine. What I thought I'd do is first cargo build for linux and…
Anatoly Bugakov
  • 772
  • 1
  • 7
  • 18
0
votes
0 answers

rust/cargo read env from shell and reuse them instread of explicity setting them in front of command everytime

I want to run a rust test with some env, like: use std::env; #[test] fn test_case1() { env::var("ENV1").unwrap(); env::var("ENV2").unwrap(); } #[test] fn test_case2() { env::var("ENV1").unwrap(); …
YNX
  • 511
  • 6
  • 17
0
votes
2 answers

Is there a programmatic approach to check for unused unit test files in a crate?

The documentation for Rust tests indicates that unit tests are run when the module that defines them is in scope, with the test configuration flag activated: #[cfg(test)] mod tests { #[test] fn it_works() { let result = 2 + 2; …
Francois G
  • 11,957
  • 54
  • 59
0
votes
1 answer

cargo-maven3-plugin stopped running

I had a working project, but suddenly it stopped running I'm launching the TomCat 9.0.60 via cargo plugin version 1.10.1. After "mvn clean package cargo:run" an exception occurs when restarting: "org.codehaus.cargo.container.ContainerException:…
IlHam13
  • 11
  • 2
0
votes
1 answer

Image Swap using jQuery

I hope somebody could help me out with this. I'm working on a portfolio website that currently looks like this: http://cargocollective.com/shap As you can see, I have a png image over 15 animated gif thumbnails. Basically, I want to have some short…
Shahak
  • 1
  • 1
0
votes
1 answer

How to force the Cargo Maven Plugin to produce Errors rather then Infos or Warnings when deploy fails?

I am using the cargo maven plugin to deploy my application into a glassfish container for integration test: org.codehaus.cargo cargo-maven2-plugin
Matthias
  • 1
  • 1
0
votes
1 answer

Tomcat rejects URL encoded "<" and ">" symbols

Tomcat 9.0.54 rejects my URL because of the "<" and ">" symbols. It rejects it also when in percent encoded forms "%3C" and "%3E". I also tried adding relaxedQueryChars="<>" to the Connector in the server.xml but without avail. The Tomcat…
hippofan
  • 3
  • 3